Skip to content

CI/CD and Manual Deployment ​

Current state ​

There are no CI/CD workflow files in any of the three repositories. None of them contains .github/workflows, a Dockerfile, or a PM2 ecosystem file. Deployments are performed manually on the server or through whatever process supervisor and hosting platform are in use.

This is intentional for now. The docs below describe the manual process and the checks worth running before a release.

Pre-deploy checks ​

Run these in the repository you are changing:

ProjectCheck
APIpnpm lint, pnpm build, targeted tests: pnpm test:booking, pnpm test:booking-email, pnpm test:inquiry-relay
CMSpnpm lint, pnpm build, pnpm check:canonical-path, pnpm check:post-resolution
Frontendpnpm lint, pnpm build (the postbuild step checks chunk budgets and generates sitemaps)

The API has no general test runner. The tests listed above are standalone ts-node scripts with assertions.

Manual release ​

bash
ssh <server>
cd <app-directory>
git pull
pnpm install --frozen-lockfile
pnpm build
pm2 restart <process-name>

For the API, apply migrations before the restart:

bash
pnpm prisma migrate deploy

For the frontend, confirm .env contains the production NEXT_PUBLIC_* values before pnpm build.

Branching ​

BranchPurpose
mainProduction
devStaging/integration
feat/*, fix/*, chore/*Short-lived work branches merged by PR

Git hooks ​

The API and CMS use Husky. Their prepare script installs hooks during pnpm install; pre-commit runs ESLint. Do not bypass hooks with --no-verify unless the failure is unrelated and you have said so in the PR.

If you add automation later ​

Keep it boring:

  1. On push to main: install with a frozen lockfile, run lint and build, then deploy over SSH.
  2. Keep secrets (SSH_*, database URLs, API keys) in the platform's secret store, never in the repository.
  3. Deploy the API before the frontend when an API contract changes.
  4. Run migrations as an explicit step, not as part of app startup.

The absence of workflow files is a current fact, not a recommendation. If workflows are added, update this page.

Built with VitePress