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:
parent
09164036af
commit
4cbd6f6e8a
1 changed files with 27 additions and 0 deletions
27
scripts/deploy-oneliner.sh
Executable file
27
scripts/deploy-oneliner.sh
Executable 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"
|
||||||
Loading…
Reference in a new issue