/opt/mawid
NameSizeModeActions
.git/-0755rm
apps/-0755rm
backups/-0755rm
packages/-0755rm
scripts/-0755rm
.env.droplet7840644editdlrm
.gitignore990644editdlrm
.nvmrc80644editdlrm
.prettierignore520644editdlrm
.prettierrc730644editdlrm
Caddyfile2420644editdlrm
DEMO.md53980644editdlrm
deploy.sh7890755editdlrm
docker-compose.droplet.yml10570644editdlrm
docker-compose.prod.yml10330644editdlrm
docker-compose.yml21870644editdlrm
eslint.config.mjs6470644editdlrm
GOLIVE.md83250644editdlrm
package.json6190644editdlrm
pnpm-lock.yaml2477460644editdlrm
pnpm-workspace.yaml1850644editdlrm
PROGRESS.md225590644editdlrm
PROJECT_PLAN.md129970644editdlrm
README.md9820644editdlrm
RUNBOOK.md51250644editdlrm
tsconfig.base.json3160644editdlrm
Edit: /opt/mawid/deploy.sh (789B)
#!/usr/bin/env bash # Deploy to the VPS (PROJECT_PLAN Phase 7 task 5). # Usage: ./deploy.sh [.env.production|.env.staging] (default .env.production) set -euo pipefail cd "$(dirname "$0")" ENV_FILE=${1:-.env.production} [ -f "$ENV_FILE" ] || { echo "missing $ENV_FILE — copy .env.example and fill it in"; exit 1; } COMPOSE=(docker compose --env-file "$ENV_FILE" -f docker-compose.yml -f docker-compose.prod.yml) git pull --ff-only "${COMPOSE[@]}" build "${COMPOSE[@]}" up -d postgres redis "${COMPOSE[@]}" up -d api dashboard caddy # Apply pending migrations with the CLI bundled in the api image. "${COMPOSE[@]}" exec -T api node node_modules/prisma/build/index.js migrate deploy \ --schema packages/db/prisma/schema.prisma "${COMPOSE[@]}" ps echo "deploy complete ($ENV_FILE)"