Overhaul deployment to Gitea Actions CI/CD, remove update.sh
Production no longer builds from source or self-updates via cron/git pull:
setup.sh now only provisions the server once (Docker, /opt/anouma, a
restricted `anouma-deploy` SSH user whose key can only ever run
deploy.sh, generated secrets). All future deployments run through
.gitea/workflows/ci.yml (lint/typecheck/test/build on every push) and
release.yml (on a vX.Y.Z tag: build the image, push it to the Gitea
registry, then SSH-trigger deploy.sh on the server), which pulls,
migrates, restarts, healthchecks, backs up the database first, and
automatically rolls back the code on a failed healthcheck.
docker-compose.yml's app service now runs a registry image
(${ANOUMA_IMAGE}) instead of building locally.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
+3
-1
@@ -8,12 +8,14 @@
|
||||
"build": "next build",
|
||||
"start": "NODE_ENV=production tsx server.ts",
|
||||
"lint": "eslint",
|
||||
"test": "echo \"No automated test suite configured yet — add one (e.g. vitest) and update this script.\"",
|
||||
"payload": "payload",
|
||||
"generate:types": "payload generate:types",
|
||||
"generate:importmap": "payload generate:importmap",
|
||||
"migrate": "payload migrate",
|
||||
"migrate:create": "payload migrate:create",
|
||||
"seed": "payload run scripts/seed.ts"
|
||||
"seed": "payload run scripts/seed.ts",
|
||||
"seo:check": "payload run scripts/seo-check.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@payloadcms/db-postgres": "^3.88.0",
|
||||
|
||||
Reference in New Issue
Block a user