Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
21 lines
400 B
Bash
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"
|