Create Shopware Staging Environment

How to create your test environment

How you can create your Shopware staging environment, so that you don’t have to try out new features directly on the live store, we’ll show you in this Shopware tutorial. You can easily create a Shopware 6 test environment here.

Create Shopware Staging Environment - For this you need these

Sometimes it is necessary or simply wiser not to operate directly on the open heart. Applied to online retail, this means not trying out changes directly in the live store. This can save you some trouble. Therefore, in this video we want to show you how to create a test environment for your Shopware 6 Live Shop. If you’re interested in how to install, optimize or configure it, you can check it all out in our packed Shopware Playlist.

Set up the subdirectory of the test environment

We have already installed ours and are now getting to work.
Some of you will still know from Shopware 5 that you first create a new folder as a subdirectory in the main directory of the live store. However, Shopware itself does not recommend this for the 6 version. Instead, you must create a subdirectory in the form of a new folder. Name this e.g. Testshop or Staging environment. Now all data of your live store must be copied into this folder. It is important to copy the .env and .htaccess file, because they have to be adjusted afterwards. In your hoster interface you should now create a subdomain. This should be different from the huaptdomain, otherwise the main domain will be routed to the test environment. Which is not our goal.

Create Shopware staging environment - customization of files

So now that you have routed the subdomain to the newly created “Testshop” folder, we can continue with the database. We go to phpmyAdmin and create a new database first. We can do this by clicking on new in the top left column. Then we give this a name, such as. “Test Shop. Now directly selects “utf8mb4_unicode_ci” as collation. Now just click on create. Now we have to adapt the .env file just mentioned. This file is located directly in the main directory of the test environment. Look for the line that starts with DATABASE_URL. After the equal sign you have to enter the data of the database and after the slash you have to enter the name of the database. In our case this is Testshop. In addition, the complete call for the test store should be entered here after APP_URL.

Create Shopware staging environment - duplicate databases

Once that’s done, all that’s left to do is export the contents of your Live Shop database and integrate it into the new database. To do this, go back to your database administration. In our case, the Export tab is located in this bar. Here you do not need to make any further changes, just click Okay. Then you will see that a sql file will be downloaded which you will have to import into the Testshop database. There we go now also and click on Import. Find the file here and click Ok. This may take a moment depending on the size.Finally, it is necessary to make one more change in your backend.

The Shopware Agency eBakery

To do this, select your sales channel and scroll down to the Domains section. Here you can customize the URL for the sales channel. To edit it click on the context menu. Here you have to enter the subdomain URL. Save at the end. And your store should already be accessible under the test store URL. I hope we could help you with the tutorial. If there are still questions or you need help, we as a Shopware agency are happy to help you personally. Please make an appointment directly.

  • 0/5
  • 0 ratings
0 ratingsX
Very bad! Bad Hmmm Oke Good!
0% 0% 0% 0% 0%

Haben Sie Fragen oder brauchen ein individuelles Angebot? Zögern Sie nicht, uns zu kontaktieren.


    eBakery requires the contact information you provide to contact you regarding our products and services. You can unsubscribe from these notifications at any time. For information on unsubscribing, as well as our privacy practices and commitment to protecting your privacy, please see our Privacy Policy.*.

    Related Posts

    Leave a Comment

    Hat dir der Artikel gefallen?

    Dann melde dich doch zu unserem Newsletter an!

    Neben unseren Blog Themen informieren wir dich darin regelmäßig zu neuen Features und Tutorials