You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now to use the staging environment, we need to change the base URL's to use the ports for the staging environment. This way your site is accessible through the same URL's as the production shop but will be using different ports. We change the HTTP port to 8888 and the HTTPS port to 8443.
74
74
75
-
`**`Please note the we often see conflicts when the unsecure and the secure Base-URLs are not the same. So either set both Base-URLs to HTTP -> 8888 or both URLs to HTTPS -> 8443. For example:
75
+
Please note the we often see conflicts when the unsecure and the secure Base-URLs are not the same. So either set both Base-URLs to HTTP -> 8888 or both URLs to HTTPS -> 8443. For example:
76
76
77
77
```nginx
78
78
| id | code | unsecure_baseurl | secure_baseurl |
@@ -89,13 +89,13 @@ OR:
89
89
```
90
90
91
91
Use the following command to change the ports of your staging shop, but use your own domains. You can do this for a single storefront or for all of them.
92
-
This way, if your live shop is `[https://www.example.com/](https://www.example.com/%60)`, your staging environment will be accessible on `[https://www.example.com:8443/](https://www.example.com:8443/%60)`
92
+
This way, if your live shop is `https://www.example.com/`, your staging environment will be accessible on `https://www.example.com:8443/`
93
93
94
94
#### Change the Base URL's for a Single Storefront Using Magerun
@@ -122,7 +122,7 @@ A big thank you to our partner [Experius](https://www.experius.nl/) for providin
122
122
123
123
#### Manually Change the Base URL's of Your Storefronts
124
124
125
-
If you want to set the base URL's manually, check [our documentation](../magento-1/how-to-change-the-base-url-in-magento-1-x.md) on changing your base URL's for Magento 1. Do you have a Magento 2 shop, please check [this article](how-to-change-your-magento-2-base-urls.md) on changing base URL's.
125
+
If you want to set the base URL's manually, check [this article](how-to-change-your-magento-2-base-urls.md) on changing base URL's.
126
126
127
127
### Step Seven: Change All References in Your Staging Directory
128
128
@@ -139,7 +139,7 @@ Keep in mind:
139
139
- Regenerate your sitemap as it may still contain links to your live site.
140
140
- Change all custom links and references that are in your staging installation pointing to the production install.
141
141
142
-
Now you should be able to reach your Magento 2 staging environment on <http://mynode.hypernode.io:8888>
142
+
Now you should be able to reach your Magento 2 staging environment on `http://example.hypernode.io:8888`
143
143
144
144
For additional configuration and troubleshooting refer to the [Magento 1 staging environment article](../magento-1/how-to-set-up-a-staging-environment-for-magento-1.md)
145
145
@@ -151,11 +151,11 @@ For example. Your live Base-URL `https://www.example.com` and your staging envir
151
151
152
152
If you want to use Varnish for the staging URL make sure to use an unique domain so both domains have their own cache. To do this you can either use the Hypernode domain, or create a subdomain for yourself. For example:
In the example above the domain for the staging environment is always different than the one from the live environment and therefor the Varnish cache won't get mixed up.
0 commit comments