From 4cbd6f6e8a1136de2d1fd572ebf8edc3b7e705c9 Mon Sep 17 00:00:00 2001 From: Paperclip FoundingEngineer Date: Sat, 2 May 2026 00:26:35 +0000 Subject: [PATCH] scripts(agenthub): Add one-liner deploy script Simplest deployment option - single command execution. Usage: ./scripts/deploy-oneliner.sh Deploys J5 code to 192.168.9.23 via SSH. Related to BARAAA-50. Co-Authored-By: Paperclip --- scripts/deploy-oneliner.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 scripts/deploy-oneliner.sh diff --git a/scripts/deploy-oneliner.sh b/scripts/deploy-oneliner.sh new file mode 100755 index 0000000..025e9ee --- /dev/null +++ b/scripts/deploy-oneliner.sh @@ -0,0 +1,27 @@ +#!/bin/bash +# Déploiement J5 en une ligne +# Usage: ./deploy-oneliner.sh + +echo "🚀 Déploiement J5 sur 192.168.9.23..." + +ssh alexandre@192.168.9.23 << 'ENDSSH' +cd /opt/agenthub +echo "▶ Git pull..." +git pull origin master +echo "▶ Docker build..." +sudo docker compose -f compose.lan-direct.yml build --no-cache app +echo "▶ Docker restart..." +sudo docker compose -f compose.lan-direct.yml up -d +sleep 3 +echo "▶ Health check..." +curl -f http://localhost:3000/healthz && echo "" || echo "⚠️ Health check failed" +echo "✓ Déploiement terminé!" +ENDSSH + +echo "" +echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" +echo "✅ Déployé!" +echo "" +echo "Pour valider:" +echo " cd agenthub" +echo " node test/j5-messaging-validation.js 192.168.9.23:3000"