Files
2026-03-01 15:43:27 +01:00

20 lines
321 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
APP_DIR="$(cd "$(dirname "$0")" && pwd)"
cd "$APP_DIR"
echo "⏳ Pulling latest changes..."
git pull --ff-only
echo "⏳ Installing dependencies..."
npm install
echo "⏳ Building..."
npm run build
echo "⏳ Restarting..."
pm2 restart llm-proxy-api
echo "✅ Update complete."