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 <noreply@paperclip.ing>
This commit is contained in:
Paperclip FoundingEngineer 2026-05-02 00:26:35 +00:00
parent 09164036af
commit 4cbd6f6e8a

27
scripts/deploy-oneliner.sh Executable file
View file

@ -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"