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 git@github.com:shopware/production.gitgit checkout v6.3.0.2rm -rf .gitgit init6ada1fgit diff --name-only 6ada1f HEAD | grep -v composerfiles and the public/js, public/css, public/fonts , public/thumbnail and public/media directoriescomposer.json files and copy over the packages you’ve added (under require & require-dev) and the repositories you’ve addedcomposer update in the production template projecttouch install.lock to let Shopware know we’ve already installed itgit 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