Repository navigation
feat: wire sync rewrite to fyrst:sales-channel:rewrite-urls - #30
Merged
Merged
Conversation
Call bin/console fyrst:sales-channel:rewrite-urls after a non-live DB restore instead of bash SQL. Keep requested? / live-refuse / db-skipped guards in overlay bash. Register FyrstShopwareCdBundle in the Flex manifest so composer recipes:update writes config/bundles.php. Companion to fyrst-dev/shopware-cd#20. Follows #17. Co-authored-by: ROBJkE <ROBJkE@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Wire VPS sync post-restore sales-channel URL rewrite to
bin/console fyrst:sales-channel:rewrite-urlsfrom fyrst-dev/shopware-cd#20. Overlay bash no longer runsUPDATE sales_channel_domain.Follows #17. Do not edit shopware-cd PHP in this PR.
Recipe
manifest.json: Flexbundlesentry forFyrst\ShopwareCd\FyrstShopwareCdBundle(all). Existingcopy-from-recipe+envblock unchanged.composer recipes:update fyrst/shopware-cdwritesconfig/bundles.php.deploy/sync-runtime.sh:maybe_rewrite_sales_channel_domainscalls the console command via composerun --rm --pull never --entrypoint php(same style ascache:clear).--dry-runis passed only whenDRY_RUN=1.SYNC_ALLOW_LIVE_RESTORE=1does not bypass), “rewrite requested?”, and “db skipped” guards.deploy/lib/sync-rewrite.shis slimmed to those guards plus CLI flag construction. SQL planner/update helpers are gone.Operator how-to
Set
SYNC_REWRITE_APP_URLand/orSYNC_REWRITE_URL_MAPon a non-live consumer. Sync calls the console command. Shops need:so the command and bundle exist.
Tests
bash fyrst/shopware-cd/1.0/tests/sync-rewrite.test.shandvps-hardening.test.sh/init-env.test.shpass.Flex rebuild
The Flex index (
flex/main) rebuilds on merge tomainvia Update Flex endpoint. Until that workflow succeeds, shops will not see the newbundlesentry from this endpoint.The same overlay change is mirrored onto
fyrst-dev/recipes-contribbranchadd-fyrst-shopware-cd(symfony/recipes-contrib#2049).