# How to move custom theme to live server?

**URL:** <https://forum.shopware.com/t/how-to-move-custom-theme-to-live-server/91498>\
**Category:** Themes & Design (EN)\
**Created:** [16. November 2021 um 07:00 UTC](https://forum.shopware.com/t/how-to-move-custom-theme-to-live-server/91498 "2021-11-16T07:00:39Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![magnus](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/magnus/32/13222_2.png) [@magnus](https://forum.shopware.com/u/magnus)\
**Post date:** [16. November 2021 um 07:00 UTC](https://forum.shopware.com/t/how-to-move-custom-theme-to-live-server/91498/1 "2021-11-16T07:00:39Z")

</div>

Hello  
I have a development setup (cloned from Github) installed. Have created a new custom theme, but are not sure how / what to do, to install this theme on my live server?

Before I try (and maybe mess up my live installation), what do I need to do? As I understand it, you need a Zip archive. So is it so simple that zip the folder for my theme („AliceKattgodisTheme“) and then import it in the live server (My extension \> Upload extension)?

In the help docs there is a command „theme:dump“ but no explanation what is does. The file „build.sh“ says „DESCRIPTION: Builds the project for production“. Should I run this before zipping?

Sorry for all the newbe questions.

Magnus

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [16. November 2021 um 08:41 UTC](https://forum.shopware.com/t/how-to-move-custom-theme-to-live-server/91498/2 "2021-11-16T08:41:08Z")

</div>

You need to run the build-storefront.sh to get dist JavaScript and LESS/CSS code.

Then zip the folder and install it via upload under my extensions.

That is it!

---

<div class="post-metadata">

**Author:** ![magnus](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/magnus/32/13222_2.png) [@magnus](https://forum.shopware.com/u/magnus)\
**Post date:** [16. November 2021 um 13:02 UTC](https://forum.shopware.com/t/how-to-move-custom-theme-to-live-server/91498/3 "2021-11-16T13:02:38Z")

</div>

Hey @Max_Shop  
Thanks. But I’m not sure I understand it correct. I dont’t seems to have this file? 🤔

I tried with  
`bin/console build-storefront.sh`  
But with an error „Command „build-storefront.sh“ is not defined.“ Should this work with Shopware 6?

Did run bin/console list but I can not see any command for building the theme.  
I did a try with bundle:dump with an „OK Dumped plugin configuration.“. Where is this file saved?

Note: Inside public \> theme there is a few folders with very long names, like „4fdb286fcbca2d5da637277f077fa5f1“. And inside are folders for assets, css and js…

I’m a little lost now and really miss this step in the official documentation.

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [16. November 2021 um 13:39 UTC](https://forum.shopware.com/t/how-to-move-custom-theme-to-live-server/91498/4 "2021-11-16T13:39:22Z")

</div>

It is a console (bash) command, but not a shopware console command!

These are files in bin folder.

./bin/build-storefront.sh or bin/build-storefront.sh

---

<div class="post-metadata">

**Author:** ![magnus](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/magnus/32/13222_2.png) [@magnus](https://forum.shopware.com/u/magnus)\
**Post date:** [16. November 2021 um 15:33 UTC](https://forum.shopware.com/t/how-to-move-custom-theme-to-live-server/91498/5 "2021-11-16T15:33:03Z")

</div>

Sorry @Max_Shop, but I do not have this bash command in the bin folder.

I tried both variants, with the same error:  
zsh: no such file or directory: bin/build-storefront.sh

(feeling so stupid now)

But, when I check the installation on the live server (hosted), the file is there 🙂 A little strange in my opinion. I will copy this file to my local setup and give a new try. Where will the files be saved?

Sidenote: See the attached file what files I have in bin.

 ![Screenshot 2021-11-16 at 15.55.35](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/b/bcd0f893b66283744208e2adbebb35d90688e129.png)

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [16. November 2021 um 17:30 UTC](https://forum.shopware.com/t/how-to-move-custom-theme-to-live-server/91498/6 "2021-11-16T17:30:38Z")

</div>

The mentioned .sh files are not included in the development template (your screenshot). But they are included in the production template (your server).

In the development template use ./psh.phar storefront:build

The generated files will be in Ressources\app\storefront\dist …

Confused about development and production… look for example at [Add custom Javascript - Shopware Developer](https://developer.shopware.com/docs/guides/plugins/plugins/storefront/add-custom-javascript#testing-your-changes)  
The two different commands are mentioned there.

---

<div class="post-metadata">

**Author:** ![magnus](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/magnus/32/13222_2.png) [@magnus](https://forum.shopware.com/u/magnus)\
**Post date:** [17. November 2021 um 06:56 UTC](https://forum.shopware.com/t/how-to-move-custom-theme-to-live-server/91498/7 "2021-11-17T06:56:40Z")

</div>

Thanks @Max_Shop 🙂 🙂  
Now I got a successful output in the Terminal. But I’m still confused where the files are saved. I do not have a „Resources“ folder in the root („development“).

The name of the theme is „AliceKattgodisTheme“ and I have search for it, but the only one is the one I created in the start (for development). Did a search for „dist“ but the result is mostly node\_modules (a lot of them!).

In the end of the Terminal output is this line:  
`Compiling theme for sales channel for : e4632373af02438eacca414037f6b77b`

There is a zip file with this name at: ./public/theme/sitemap/saleschannel-e4632…/  
Is this the zipfile to install on the live server (it contains only a XML file)?

Best, Magnus

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [17. November 2021 um 10:34 UTC](https://forum.shopware.com/t/how-to-move-custom-theme-to-live-server/91498/8 "2021-11-17T10:34:06Z")

</div>

Plugins and Themes (these are plugins, too) are saved in custom folder…

What happens after build-storefront.sh etc.: new files are created, for example in: custom/plugins/_your plugin name_/src/Resources/app/storefront/dist

But that is not really important. What you have to do:

zip the _your plugin name_ folder and install it via the backend.

---

<div class="post-metadata">

**Author:** ![magnus](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/magnus/32/13222_2.png) [@magnus](https://forum.shopware.com/u/magnus)\
**Post date:** [17. November 2021 um 11:25 UTC](https://forum.shopware.com/t/how-to-move-custom-theme-to-live-server/91498/9 "2021-11-17T11:25:29Z")

</div>

Thank you. For all the help and patience with my basic questions. 😌

---

<div class="post-metadata">

**Author:** ![magnus](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/magnus/32/13222_2.png) [@magnus](https://forum.shopware.com/u/magnus)\
**Post date:** [18. November 2021 um 14:11 UTC](https://forum.shopware.com/t/how-to-move-custom-theme-to-live-server/91498/10 "2021-11-18T14:11:08Z")

</div>

I’m so close now! 😆  
I zipped the folder and tried to upload (My extensions \> Themes). But, I get the error:  
Unable to extract ZIP file.

Checked the server and PHP Zip extension is active. Can the error be that the zip file is created with the built in compression of Mac OS?

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [18. November 2021 um 14:30 UTC](https://forum.shopware.com/t/how-to-move-custom-theme-to-live-server/91498/11 "2021-11-18T14:30:11Z")

</div>

„built in compression of Mac OS“ … no, no, no 🤪

I like(d) Apple, still their software sometimes is a mess.

I personally can recommend [Keka - the macOS file archiver](https://www.keka.io/en/)

---

<div class="post-metadata">

**Author:** ![magnus](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/magnus/32/13222_2.png) [@magnus](https://forum.shopware.com/u/magnus)\
**Post date:** [18. November 2021 um 14:51 UTC](https://forum.shopware.com/t/how-to-move-custom-theme-to-live-server/91498/12 "2021-11-18T14:51:02Z")

</div>

You (and Keka) solved the issue.  
(I still love Apple - since the good old SE30 days) 😅

The new theme is activated 🤗
