Skip to content

NEXT-33729 - Add staging mode#1318

Merged
Su (sushmangupta) merged 9 commits intomainfrom
add-staging-mode
Apr 3, 2024
Merged

NEXT-33729 - Add staging mode#1318
Su (sushmangupta) merged 9 commits intomainfrom
add-staging-mode

Conversation

@shyim
Copy link
Copy Markdown
Member

@shyim Soner (shyim) commented Mar 5, 2024

We should add a system:setup-staging command to prepare a Shopware Shop to be used in a Staging environment. Therefore the command should do:

  • Uninstall all Apps which have an active connection to an external app server (delete without notify the external backend, to not interrupt production)
  • Rewrite production URLs to given Staging URL
  • Dispatch a StagingEvent so extensions can react to that: ** Example PayPal listens on it and enables Sandbox

Comment thread guides/hosting/configurations/shopware/staging.md Outdated
Comment thread guides/hosting/configurations/shopware/staging.md Outdated
Comment thread guides/hosting/configurations/shopware/staging.md Outdated
Comment thread guides/hosting/configurations/shopware/staging.md Outdated
Comment thread guides/hosting/configurations/shopware/staging.md Outdated
Comment thread guides/hosting/configurations/shopware/staging.md Outdated
@matheusgontijo
Copy link
Copy Markdown
Contributor

Hey Soner (@shyim) thanks for the PR.

Would you please incorporate the description from issues platform (https://issues.shopware.com/issues/NEXT-33729) into the pull request?

Thank you so much. 🙏🙏🙏

Comment thread guides/hosting/configurations/shopware/staging.md Outdated
Comment thread guides/hosting/configurations/shopware/staging.md Outdated
Comment thread guides/hosting/configurations/shopware/staging.md Outdated
Comment thread guides/hosting/configurations/shopware/staging.md Outdated
Comment thread guides/hosting/configurations/shopware/staging.md Outdated
Comment thread guides/hosting/configurations/shopware/staging.md Outdated
Comment thread guides/hosting/configurations/shopware/staging.md Outdated
@JoshuaBehrens
Copy link
Copy Markdown
Contributor

I am missing something about the license domain. This should be reset to the wildcard or staging domain. Any ideas on that or do I have to implement a subscriber for this in every project?

@shyim
Copy link
Copy Markdown
Member Author

Right now, I would just reused the existing licenses as in production 😅

@JoshuaBehrens
Copy link
Copy Markdown
Contributor

Bad idea. You will get mails when you install new plugins in staging and do not have wildcard configured. Been there...

@shyim
Copy link
Copy Markdown
Member Author

So what about two environment variables, account user + account password, and then you can set in yaml which domain should be set?

@JoshuaBehrens
Copy link
Copy Markdown
Contributor

Which Shopware account would you use? I only have access to agency user accounts. Are there any service accounts, that can be used to only receive plugins/apps?

@bojanrajh Bojan Rajh (bojanrajh) changed the base branch from main to v6.5 March 21, 2024 09:49
@shyim Soner (shyim) changed the base branch from v6.5 to main March 27, 2024 09:44
@shyim Soner (shyim) marked this pull request as ready for review March 27, 2024 09:45
@shyim
Copy link
Copy Markdown
Member Author

This can be now merged

Copy link
Copy Markdown
Contributor

@sushmangupta Su (sushmangupta) left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the update! :)

@sushmangupta Su (sushmangupta) merged commit e86170a into main Apr 3, 2024
@sushmangupta Su (sushmangupta) deleted the add-staging-mode branch April 3, 2024 14:01
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

Successfully merging this pull request may close these issues.

7 participants