Sync local CMS data to AWS. Push pages and comps from local/seed to the AWS CMS via API. Part of cms-manager.
Push local CMS data (pages, comps) to the AWS-hosted CMS so the main site (e.g. App Runner) reads up-to-date content from the CMS.
cms-manager)pure-aws-devops)data/page/*.js, themes, header, footer).CMS_HOST=https://cms.conjeezou.com node cms/scripts/seed-and-sync.js
cms/scripts/seed-and-sync.js.env then .env.local. Set CMS_HOST, CMS_EMAIL, CMS_PASSWORD (e.g. in .env.local). Without --local-only, script syncs to CMS_HOST after seeding.node cms/scripts/seed-and-sync.js --local-only — no sync to AWS.To overwrite the AWS CMS DB file with your local cms/data/cms.db: ./cms/scripts/aws/sync-db-to-aws.sh cms/data/cms.db. Requires ECS Exec (and a task role). Prefer API sync when possible.
pure-aws-devops — ECS, ALB, EFS, ECR, CMS URL, ECS Exec gotchas.cms/scripts/seed-and-sync.js — seed + sync logic.