t's finally time to create our new feature. dockware brings you a running Github version of Shopware 6. Still, its not possible to always deliver the latest commit. There will be multiple new ones everyday on Github. We recommend pulling the latest version before you start a new feature. Do this by pulling the "development" and the "platform" repository on your host machine. Open your terminal and navigate to the "src" folder.
ON HOSTgit pullcd platform && git pull
Great, we are up to date. Now just start a new feature branch that will be used for the pull request later on.
ON HOSTgit checkout -b my-new-feature origin/trunk
Upload Source / Switch Branches
To restart your work from your updated repository, please upload the source to your docker container.
Here is a script that completely reinstalls Shopware and makes sure that you can work smoothly:
ON HOSTcd ((outside src directory)docker exec -it shopware bash -c 'sudo rm -rf /var/www/html/*'docker cp ./src/. shopware:/var/www/html/docker exec -it shopware bash -c 'sudo rm -rf composer.lock'docker exec -it shopware bash -c 'sudo rm -rf /var/www/html/vendor'docker exec -it shopware bash -c 'sudo chown www-data:www-data /var/www -R'docker exec -it shopware bash -c './psh.phar install'
Open http://localhost and your updated Shopware 6 should be back.