feat: add npm run deploy script for o2switch deployment

Consolidates the manual deploy steps (env copy, install, prisma
generate/migrate deploy, build, pm2 startOrRestart+save) documented
in the README into a single scripts/deploy.sh run over SSH.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-11 14:55:05 +02:00
co-authored by Claude Sonnet 5
parent 2b5f68752f
commit d2e491c762
3 changed files with 40 additions and 8 deletions
+3 -1
View File
@@ -19,7 +19,9 @@
"worker:pm2:status": "pm2 status ombrora-worker",
"worker:pm2:logs": "pm2 logs ombrora-worker",
"db:migrate": "prisma migrate dev",
"db:generate": "prisma generate"
"db:migrate:deploy": "prisma migrate deploy",
"db:generate": "prisma generate",
"deploy": "bash scripts/deploy.sh"
},
"jest": {
"testEnvironment": "node",