Skip to content

feat: hard-cut Shopware env to root .env.* - #33

Merged
ROBJkE merged 2 commits into
mainfrom
cursor/shopware-env-hard-cut-eb57
Sep 14, 2026
Merged

ROBJkE merged 2 commits into
mainfrom
cursor/shopware-env-hard-cut-eb57

Conversation

@ROBJkE

@ROBJkE ROBJkE commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

One ShopEnv::load(project_root) for every shopware verb. Project-root .env / .env.local / .env.prod is the only file source. deploy/sync.env and deploy/backup.env are never read.

Behavior

  • New names only. Leftover SYNC_* / BACKUP_SSH_* / BACKUP_ALLOW_* / SYNC_APP_URL fail when the replacement is unset. No silent aliases.
  • Data root from SHOPWARE_DATA_BASE / SHOPWARE_SHOP_ID / SHOPWARE_DEPLOY_ENV (base default /var/lib/shopware/data). Optional SHOPWARE_DATA_ROOT.
  • SSH from SHOPWARE_SSH_HOST / USER / KEY. Host defaults to the --from alias. Port is always 22. No per-alias SYNC_<ALIAS>_*.
  • Remote live data from SHOPWARE_REMOTE_DATA_ROOT or {data_base}/{shop_id}/live.
  • Rewrite from APP_URL only. Skipped on live so DR can continue.
  • Live gate from SHOPWARE_ALLOW_LIVE_RESTORE plus existing --allow-live on db import.
  • Backup keeps BACKUP_TARGET (default local), BACKUP_KEEP_DAYS, BACKUP_DB_DUMP; SSH targets reuse SHOPWARE_SSH_*.

Docs: docs/command-matrix.md and README. Dump is not implemented. Recipes and shopware-cd are unchanged. CI VPS_* stay secrets.

Tests

cargo test passed (unit + integration). Sync-local dry-run still requires rsync on PATH.

Open in Web Open in Cursor 

cursoragent and others added 2 commits September 14, 2026 10:06
One ShopEnv::load for every shopware verb. Drop deploy/sync.env and
deploy/backup.env. Fail leftover SYNC_*/BACKUP_SSH_*/BACKUP_ALLOW_*
when the replacement is unset. Data root, SSH, rewrite, and live gate
use the new names only.

Co-authored-by: ROBJkE <ROBJkE@users.noreply.github.com>
Remote source env is always live; leftover alias_key helpers were unused
after the Shopware env hard-cut.

Co-authored-by: ROBJkE <ROBJkE@users.noreply.github.com>
@ROBJkE
ROBJkE marked this pull request as ready for review September 14, 2026 10:09
@ROBJkE
ROBJkE merged commit 35a87a1 into main Sep 14, 2026
1 check passed
@ROBJkE
ROBJkE deleted the cursor/shopware-env-hard-cut-eb57 branch September 14, 2026 10:09
@ROBJkE

ROBJkE commented Sep 14, 2026

Copy link
Copy Markdown
Contributor Author

Merged

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.

2 participants