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"