Commit graph

5 commits

Author SHA1 Message Date
Vadym Samoilenko
1ba1349607 fix: use programmatic migrate script instead of pnpm payload migrate
pnpm payload migrate exits 1 in the migrator container likely due to TLA
issues with Lexical packages (same issue seen with migrate:create).

Replace with a small src/scripts/migrate.ts that calls payload.db.migrate()
programmatically, using the same NODE_OPTIONS approach that works for seed.ts:
  NODE_OPTIONS="--experimental-strip-types --no-require-module"

Also add migrator log output to the CD workflow for easier debugging.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-23 21:37:29 +00:00
Vadym Samoilenko
2966dfb518 ci: remove --pull to use Docker layer cache on server
Subsequent deploys will only rebuild changed layers (src code).
Node modules layer is cached as long as package.json is unchanged.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-23 18:36:48 +00:00
Vadym Samoilenko
f018a6e703 ci: fix SSH port to 1220, remove sudo (ubuntu in docker group)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-23 18:25:50 +00:00
Vadym Samoilenko
11826a63eb ci: add port 22 and sudo docker for ubuntu user
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-23 18:25:10 +00:00
Vadym Samoilenko
4958a6afc2 ci: add GitHub Actions CD workflow for auto-deploy to VPS
On push to main: SSH into server, git pull, docker compose build + up.
Uses SSH_HOST / SSH_USER / SSH_PRIVATE_KEY repo secrets.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-23 18:20:36 +00:00