Skip to content

docs(deployment-helper): fix env var names, execution flow, and add missing config#2332

Open
Soner (shyim) wants to merge 4 commits into
mainfrom
docs/deployment-helper-audit-fixes
Open

docs(deployment-helper): fix env var names, execution flow, and add missing config#2332
Soner (shyim) wants to merge 4 commits into
mainfrom
docs/deployment-helper-audit-fixes

Conversation

@shyim

Copy link
Copy Markdown
Member

Audit Findings & Fixes

Cross-referenced the docs against the deployment-helper source codebase.

🔴 Critical Fixes

  1. FASTLY_API_KEYFASTLY_API_TOKEN — The code reads FASTLY_API_TOKEN in all 6 locations. Following the old docs would cause Fastly integration to silently skip with no error.

  2. Staging mode execution order — Docs said staging runs "before extensions"; StagingSetupSubscriber is a PostDeploy listener that runs after everything. Fixed both the YAML comment and the dedicated section.

🟡 Missing from YAML Reference

  • deployment.maintenance.enabled — Implemented but undocumented; gates maintenance mode during updates (defaults false)
  • deployment.cache.always_clear — Implemented ClearAlwaysCacheSubscriber but config key was missing from docs

🟡 Execution Flow Diagram

  • Updated mermaid diagram: maintenance mode enable/disable nodes now show "(if configured)" since they're gated by maintenance.enabled

🟢 Missing Environment Variables

Added 10 undocumented env vars that are actively used in code: INSTALL_ADMIN_EMAIL, APP_URL, SHOPWARE_DEPLOYMENT_FORCE_REINSTALL, SHOPWARE_STORE_SHOP_SECRET, SHOPWARE_PROJECT_CONFIG_FILE, FASTLY_API_TOKEN, FASTLY_SERVICE_ID, DATABASE_URL, DO_NOT_TRACK, SHOPWARE_TRACKING_DOMAIN

🟢 CLI Commands & Options

  • Added Available Commands table documenting all 7 user-facing commands
  • Added Run Command Options table for --skip-theme-compile, --skip-assets-install, --timeout, --project-config
  • Added fastly:snippet:deploy to the Fastly commands list

…issing config

- Fix FASTLY_API_KEY -> FASTLY_API_TOKEN (code reads FASTLY_API_TOKEN)
- Fix staging mode execution order: runs as PostDeploy listener, not before extensions
- Add deployment.maintenance.enabled and deployment.cache.always_clear to YAML reference
- Update mermaid diagram to reflect conditional maintenance mode
- Add missing env vars: INSTALL_ADMIN_EMAIL, APP_URL, SHOPWARE_DEPLOYMENT_FORCE_REINSTALL, SHOPWARE_STORE_SHOP_SECRET, SHOPWARE_PROJECT_CONFIG_FILE, FASTLY_API_TOKEN, FASTLY_SERVICE_ID, DATABASE_URL, DO_NOT_TRACK, SHOPWARE_TRACKING_DOMAIN
- Document all CLI commands and run command options
- Add fastly:snippet:deploy command to Fastly section

Fixes #
Copilot AI review requested due to automatic review settings June 17, 2026 06:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Deployment Helper documentation to align configuration keys, environment variable names, and the described execution flow with the current deployment-helper behavior.

Changes:

  • Added CLI reference tables for available commands and run options.
  • Updated execution-flow documentation (including mermaid diagram and staging mode order) and documented missing YAML config keys.
  • Expanded the environment variable reference and corrected Fastly integration docs to use FASTLY_API_TOKEN.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread guides/hosting/installation-updates/deployments/deployment-helper.md Outdated
Comment thread guides/hosting/installation-updates/deployments/deployment-helper.md Outdated
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.

3 participants