August 28, 2020 - 2 min read
I was a little bit confused by the terminology Shopware 6 uses for their development versus production template (read my blog that explains this difference here). I started out building a Shopware 6 webshop for a client on the development template, but I should’ve started with the production template.
So I needed to switch while we were half-way through the project. Here’s what I did.
git clone firstname.lastname@example.org:shopware/production.git
git checkout v18.104.22.168
rm -rf .git
git diff --name-only 6ada1f HEAD | grep -v composer
composer.jsonfiles and copy over the packages you’ve added (under require & require-dev) and the repositories you’ve added
composer updatein the production template project
touch install.lockto let Shopware know we’ve already installed it
git push --force.
I also had to deactivate and re-activate my theme plugin, but I’m not sure that’s needed for everyone.
Written by Peter Jaap Blaakmeer @PeterJaap