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.git
git checkout v6.3.0.2
rm -rf .git
git init
6ada1f
git diff --name-only 6ada1f HEAD | grep -v composer
files
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