# Continuous integration - best practices

**URL:** <https://forum.shopware.com/t/continuous-integration-best-practices/45131>\
**Category:** International (English Only)\
**Tags:** programming\
**Created:** [10. April 2017 um 10:38 UTC](https://forum.shopware.com/t/continuous-integration-best-practices/45131 "2017-04-10T10:38:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mobecls](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@Mobecls](https://forum.shopware.com/u/Mobecls)\
**Post date:** [10. April 2017 um 10:38 UTC](https://forum.shopware.com/t/continuous-integration-best-practices/45131/1 "2017-04-10T10:38:15Z")

</div>

Hi guys,&nbsp;

we are creating a new shop, customizing template and plugins. And it is not really clear, what is the best way to build steady development process, using git.&nbsp;

The problem specificly comes from Plugins and their Licenses.&nbsp;  
&nbsp;

We have:

- live environment ([www.siteurl.com](http://www.siteurl.com))

- staging ([staging.siteurl.com](http://staging.siteurl.com))

- dev ([dev.siteurl2.com/subfolder](http://dev.siteurl2.com/subfolder))

- local (localhost).

&nbsp;

Usually, with other CMSs developer just adding plugin files to git, and deploy them to live, dev and staging.&nbsp;

&nbsp;

And what is the correct way to do that with Shopware? And how should we deal with licenses?&nbsp;

---

<div class="post-metadata">

**Author:** ![bogus](https://avatars.discourse-cdn.com/v4/letter/b/a87d85/32.png) [@bogus](https://forum.shopware.com/u/bogus)\
**Post date:** [21. April 2017 um 10:02 UTC](https://forum.shopware.com/t/continuous-integration-best-practices/45131/2 "2017-04-21T10:02:36Z")

</div>

I use “localhost” &nbsp; For linux/OSX &nbsp; in the file&nbsp; &nbsp;/etc/hosts &nbsp;( and for windows in the file &nbsp;&nbsp;C:\Windows\System32\drivers\etc\hosts &nbsp;) &nbsp;add lines like &nbsp;

```
staging-server-IP www.siteurl.com
dev-server-IP www.siteurl.com
127.0.0.1 www.siteurl.com       

```

Since license validation works on the domain name, then this approach works.

If you find a better solution let me know

Cheers,

Bogdan

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Mobecls](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@Mobecls](https://forum.shopware.com/u/Mobecls)\
**Post date:** [21. April 2017 um 10:46 UTC](https://forum.shopware.com/t/continuous-integration-best-practices/45131/3 "2017-04-21T10:46:55Z")

</div>

Hi Bogdan, thanks.&nbsp;

&nbsp;

That could be ok for small projects, but it doesn’t work for big team, when you have several developers continously do the work, test, ask customer to test, and deliver some stuff to live…&nbsp;

---

<div class="post-metadata">

**Author:** ![arit](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@arit](https://forum.shopware.com/u/arit)\
**Post date:** [11. August 2018 um 16:01 UTC](https://forum.shopware.com/t/continuous-integration-best-practices/45131/4 "2018-08-11T16:01:47Z")

</div>

Hi Mobecls,

did you finally find a good workaround?

I like to develop locally in a docker container and think about setting up a pipeline with test, staging and production server (possibly also using tools like using git hooks,&nbsp; gitlab\_CI, travis or jenkins).  
Another question would be whether I only deploy plugins/Themes or the entire shopware installation.

can you describe your best practices?

Kind regards

---

<div class="post-metadata">

**Author:** ![shyim](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/shyim/32/7681_2.png) [@shyim](https://forum.shopware.com/u/shyim)\
**Post date:** [11. August 2018 um 16:29 UTC](https://forum.shopware.com/t/continuous-integration-best-practices/45131/5 "2018-08-11T16:29:27Z")

</div>

Hey @arit‍ ,

my&nbsp;colleague Thomas had a Talk on the Shopware Community Day with Deployment of shopware. I guess it solves the most of your problems.

Talk:&nbsp;[Thomas Eiling - Shopware Community Day 2018 (EN) - YouTube](https://www.youtube.com/watch?v=Nh1N3jZB-Ss)

Here is also a guide how to switch to composer setup from a classic installation&nbsp;[An easy example how to switch from classic installation to composer installation](https://developers.shopware.com/blog/2018/07/25/an-easy-example-how-to-switch-from-classic-installation-to-composer-installation/)

Might usefull addon for the composer setup&nbsp;[GitHub - shyim/store-plugin-installer: Install store.shopware.com Plugins automatically in your Shopware Composer Setup](https://github.com/shyim/store-plugin-installer)
