Files
2026-04-26 03:32:17 -04:00

21 lines
400 B
Bash

#!/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"
npm install
echo "==> Building"
npm run build
echo "==> Running database migrations"
npm run db:migrate
echo "==> Restarting Passenger"
mkdir -p tmp
touch tmp/restart.txt
echo "==> Done"