From dc28c9f6eb57f4e43b1a680695a29d6ff52a114f Mon Sep 17 00:00:00 2001 From: Thomas Richter Date: Thu, 18 Dec 2025 05:32:44 +0100 Subject: [PATCH] Add deployment script for automated sync and container rebuild MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Creates deploy.sh script that: - Syncs files to node03 server using rsync - Rebuilds and restarts the Docker container - Shows deployment status and container health 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- deploy.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 deploy.sh diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..4e3d3cd --- /dev/null +++ b/deploy.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +# Deploy script for whale hunting game +# Syncs files to node03 and rebuilds the Docker container + +set -e # Exit on error + +echo "🚢 Syncing files to node03..." +rsync -avz --exclude 'node_modules' --exclude 'dist' --exclude '.git' --exclude '.DS_Store' \ + ./ tho@node03.tricnet.de:/home/tho/whalehunting/ + +echo "" +echo "🐳 Rebuilding and restarting Docker container..." +ssh tho@node03.tricnet.de "cd /home/tho/whalehunting && docker-compose down && docker-compose up -d --build" + +echo "" +echo "✅ Deployment complete!" +echo "🌐 Game available at: http://node03.tricnet.de:8880" + +# Check container status +echo "" +echo "📊 Container status:" +ssh tho@node03.tricnet.de "cd /home/tho/whalehunting && docker-compose ps"