Files
elegalsoftware/scripts/plesk-deploy.sh
T

21 lines
400 B
Bash
Raw Normal View History

2026-04-26 02:42:42 -04:00
#!/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"
2026-04-26 03:32:17 -04:00
npm install
2026-04-26 02:42:42 -04:00
echo "==> Building"
2026-04-26 03:32:17 -04:00
npm run build
2026-04-26 02:42:42 -04:00
echo "==> Running database migrations"
2026-04-26 03:32:17 -04:00
npm run db:migrate
2026-04-26 02:42:42 -04:00
echo "==> Restarting Passenger"
mkdir -p tmp
touch tmp/restart.txt
echo "==> Done"