From 109b36ffe2705979241a5dd69b9e047e29b0ce99 Mon Sep 17 00:00:00 2001 From: syntaxbullet Date: Thu, 5 Feb 2026 13:05:07 +0100 Subject: [PATCH] chore: bump version, add deployment script --- package.json | 2 +- shared/scripts/deploy-remote.sh | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100755 shared/scripts/deploy-remote.sh diff --git a/package.json b/package.json index 416d7c3..e4a138e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "app", - "version": "1.1.3", + "version": "1.1.4-pre", "module": "bot/index.ts", "type": "module", "private": true, diff --git a/shared/scripts/deploy-remote.sh b/shared/scripts/deploy-remote.sh new file mode 100755 index 0000000..5c3c26e --- /dev/null +++ b/shared/scripts/deploy-remote.sh @@ -0,0 +1,32 @@ +#!/bin/bash +set -e + +# Load environment variables +if [ -f .env ]; then + set -a + source .env + set +a +fi + +if [ -z "$VPS_HOST" ] || [ -z "$VPS_USER" ]; then + echo "Error: VPS_HOST and VPS_USER must be set in .env" + echo "Please add them to your .env file:" + echo "VPS_USER=your-username" + echo "VPS_HOST=your-ip-address" + exit 1 +fi + +# Default remote directory to ~/Aurora if not specified +REMOTE_DIR="${VPS_PROJECT_PATH:-~/Aurora}" + +echo -e "\033[1;33m🚀 Deploying to $VPS_USER@$VPS_HOST:$REMOTE_DIR...\033[0m" + +# Execute commands on remote server +ssh -t "$VPS_USER@$VPS_HOST" "cd $REMOTE_DIR && \ +echo '⬇️ Pulling latest changes...' && \ +git pull && \ +echo '🏗️ Building production containers...' && \ +docker compose -f docker-compose.prod.yml build && \ +echo '🚀 Starting services...' && \ +docker compose -f docker-compose.prod.yml up -d && \ +echo '✅ Deployment complete!'"