← back to Interiordesignershowroom
.deploy.conf
28 lines
# Deploy manifest consumed by the /deploy skill (~/Projects/_shared/scripts/deploy.sh)
# Go-live to Kamatera is a GATED step — Steve approves the actual deploy.
PROJECT_NAME=interiordesignershowroom
DEPLOY_PATH=/root/Projects/interiordesignershowroom
PORT=9876
# Smoke test hits /shop (not the DB-blind /healthz) so a code-ahead-of-schema
# deploy fails RED — /shop exercises the real catalog query that 500'd on
# 2026-08-03 when prod was missing the `suppressed` column.
HEALTH_URL=http://127.0.0.1:9876/shop
# sharp is a native dep — the deploy default `--ignore-scripts` skips its binary
# resolution, so keep scripts enabled here (scoped: sharp 0.35 uses prebuilt
# platform packages, no arbitrary postinstall build).
INSTALL_CMD="npm ci --omit=dev"
# Migration step: run AFTER install, BEFORE pm2 reload, on the remote. Applies the
# idempotent db/schema.sql (CREATE ... IF NOT EXISTS + ADD COLUMN IF NOT EXISTS)
# so schema never lags the shipped code again. ON_ERROR_STOP aborts the deploy on
# a bad migration rather than reloading onto a broken DB.
BUILD_CMD="bash scripts/migrate.sh"
# Runtime state written by the LIVE server. deploy.sh runs `rsync -az --delete`, so
# without this exclude a deploy overwrites the prod file with the local copy and
# destroys everything submitted since the last deploy. Kept surgical so genuine
# build artifacts under data/ keep syncing.
RSYNC_EXTRA_EXCLUDES="/data/render-hits.json"