Files
elegalsoftware/scripts/plesk-deploy.sh
T
2026-04-26 02:42:42 -04:00

21 lines
413 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"
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"