Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update without reseting the database #146

Closed
DevertNet opened this issue Aug 23, 2019 · 4 comments
Closed

Update without reseting the database #146

DevertNet opened this issue Aug 23, 2019 · 4 comments
Assignees

Comments

@DevertNet
Copy link
Contributor

Hello,

it would be great if you can make a small how to, to update without reseting the database:
https://docs.shopware.com/en/shopware-platform-dev-en/getting-started/installation-guide#updating-the-repositories

After some research my current update proccess is:

  1. Change composer.json (of shopware/development):
    e.g. "shopware/platform": "6.0.0+ea1"
  2. Checkout the correct tag/branch in the platform folder
  3. run these commands...
    composer update
    ./psh.phar cache
    rm -rf var/cache
    ./bin/console database:migrate --all
    ./bin/console database:migrate --all Shopware
    ./bin/console database:migrate-destructive --all Shopware
    ./psh.phar storefront:install-dependencies
    ./psh.phar administration:build
    ./psh.phar storefront:build
    ./psh.phar cache
    rm -rf var/cache
@Phil23
Copy link
Contributor

Phil23 commented Aug 26, 2019

@DevertNet,

this is not the recommended way to do this, but we are planning to provide a workflow to manage and update shopware installations via Git and Composer. We will update the documentation when we have more information about this option.

Thank you for your feedback!

Greetings,
Phil

@Phil23 Phil23 closed this as completed Aug 26, 2019
@TormentedSoul666
Copy link

Any news on this? I'm developing a theme, while other people are filling the shop with content.
I need the dev tools in the dev template and can therefore not change to the production template.

@keulinho
Copy link
Contributor

Hey @TormentedSoul666,

./psh.phar update should help you there, so the workflow would be:

  1. check out new version of shopware
  2. composer update
  3. ./psh.phar update

Kind regards
Jonas

@TormentedSoul666
Copy link

TormentedSoul666 commented Feb 25, 2020

Thank you @keulinho, shouldn't this be added to doc?

shopwareBot pushed a commit that referenced this issue Oct 16, 2020
* NEXT-7962 - Add label to shipping method detail fixes #73
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants