#!/usr/bin/env bash # Run inside the Plesk app directory after `git pull`. # Configure as a Plesk "Run script" hook on Git push, or run manually via SSH. set -euo pipefail echo "==> Installing dependencies" pnpm install --frozen-lockfile echo "==> Building" pnpm build echo "==> Running database migrations" pnpm db:migrate echo "==> Restarting Passenger" mkdir -p tmp touch tmp/restart.txt echo "==> Done"