updated deploy script

This commit is contained in:
George Powell
2026-02-24 18:04:28 -05:00
parent fc674d6008
commit acc82af7cd
2 changed files with 3 additions and 24 deletions

View File

@@ -1,22 +0,0 @@
#!/bin/bash
set -e
cd "$(dirname "$0")"
echo "Pulling latest changes..."
git pull
echo "Installing dependencies..."
bun i
echo "Pushing database changes..."
bun run db:generate
bun run db:migrate
echo "Building..."
bun --bun run build
echo "Restarting service..."
sudo systemctl restart bibdle-test
echo "Done!"

View File

@@ -12,7 +12,8 @@ bun i
echo "Building..." echo "Building..."
bun --bun run build bun --bun run build
echo "Restarting service..." SERVICE_NAME="$(basename "$(pwd)").service"
sudo systemctl restart bibdle echo "Restarting service ($SERVICE_NAME)..."
sudo systemctl restart "$SERVICE_NAME"
echo "Done!" echo "Done!"