Rewrite in bun and vite away from NextJs

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-29 22:07:58 +03:00
parent af7f23b9b5
commit 0d60dbbb5f
119 changed files with 714 additions and 302 deletions

View File

@@ -12,16 +12,16 @@ echo "Pulling latest changes..."
sudo -E git pull
echo "Installing dependencies..."
sudo NODE_ENV=development npm ci
sudo bun install
echo "Building application..."
sudo NODE_ENV=production npm run build
sudo bun run build
echo "Starting/reloading with pm2..."
if sudo pm2 describe "$APP_NAME" > /dev/null 2>&1; then
sudo pm2 reload "$APP_NAME" --update-env
else
sudo pm2 start npm --name "$APP_NAME" --env PORT=8089 -- start -- -p 8089
sudo pm2 start bun --name "$APP_NAME" -- run start
fi
sudo pm2 save