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:
| Project | Check |
|---|---|
| API | pnpm lint, pnpm build, targeted tests: pnpm test:booking, pnpm test:booking-email, pnpm test:inquiry-relay |
| CMS | pnpm lint, pnpm build, pnpm check:canonical-path, pnpm check:post-resolution |
| Frontend | pnpm 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
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:
pnpm prisma migrate deployFor the frontend, confirm .env contains the production NEXT_PUBLIC_* values before pnpm build.
Branching
| Branch | Purpose |
|---|---|
main | Production |
dev | Staging/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:
- On push to
main: install with a frozen lockfile, run lint and build, then deploy over SSH. - Keep secrets (
SSH_*, database URLs, API keys) in the platform's secret store, never in the repository. - Deploy the API before the frontend when an API contract changes.
- 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.