dockware
Search…
Create Feature
t's finally time to create our new feature.
dockware brings you a running GitHub version of Shopware 6. Still, it's 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 HOST
1
git pull
2
cd platform && git pull
Copied!
Great, we are up-to-date. Now just start a new feature branch that will be used for the pull request later on.
ON HOST
1
git checkout -b my-new-feature origin/trunk
Copied!
****
Upload Source / Switch Branches
To restart your work from your updated repository, please upload the source to your docker container.
Please note, that due to branch switching it can happen that symlinks get lost!
Just remove the "composer.lock" along with the "/vendor" folder and use "composer install" one more time.
An even better and cleaner idea is to completely reinstall Shopware when starting all over.
Here is a script that completely reinstalls Shopware and makes sure that you can work smoothly:
ON HOST
1
cd ((outside src directory)
2
docker exec -it shopware bash -c 'sudo rm -rf /var/www/html/*'
3
docker cp ./src/. shopware:/var/www/html/
4
docker exec -it shopware bash -c 'sudo rm -rf composer.lock'
5
docker exec -it shopware bash -c 'sudo rm -rf /var/www/html/vendor'
6
docker exec -it shopware bash -c 'sudo chown www-data:www-data /var/www -R'
7
docker exec -it shopware bash -c './psh.phar install'
Copied!
Open http://localhost and your updated Shopware 6 should be back.
Last modified 2mo ago
Copy link