1.8 KiB
1.8 KiB
Deployment Targets
Scenario: Wulanchabu Server Deployment
1. Scope / Trigger
- Trigger: the user asks to deploy this project.
- Default target: Wulanchabu server, reached through SSH host alias
wlcb1. - This preference is project-specific and should be used for future deployment requests unless the user explicitly names another target.
2. Signatures
- SSH entrypoint:
ssh wlcb1 - Repository remote: push code to
originbefore deploying. - Database migration command:
pnpm db:migrate - Production build command:
pnpm build
3. Contracts
- Required environment on the server:
DATABASE_URLmust point to the production PostgreSQL database.- Node.js and pnpm must be available.
- Deployment should run from the server-side checkout for this repository.
- Code should be pushed to
originbefore server deployment sowlcb1deploys committed source.
4. Validation & Error Matrix
- Missing
DATABASE_URL-> deployment is not healthy; setup/login APIs return database configuration failures. - Migration failure -> stop deployment and report the failing migration output.
- Build failure -> stop deployment and report the failing command output.
- SSH failure -> report that
wlcb1could not be reached.
5. Good/Base/Bad Cases
- Good: commit locally, push to
origin, SSH towlcb1, update checkout, install deps, migrate DB, build, restart app. - Base: if the server has a project-specific deploy script, run that script after pushing.
- Bad: deploy uncommitted local files, deploy to a different host by default, or skip migrations after schema changes.
6. Tests Required
pnpm lintpnpm type-checkpnpm build- After deploy, verify the app responds and
/api/auth/bootstrapreturns a structured JSON response.
7. Wrong vs Correct
Wrong
ssh some-other-host
Correct
ssh wlcb1