fix: deploy.sh deploy-auto.sh Dockerfile docker-compose.yml gitea-post-receive-hook.sh

This commit is contained in:
2026-05-31 16:18:53 -05:00
parent 0f29f8ef61
commit 4c6e207f28
6 changed files with 11 additions and 142 deletions
+2 -2
View File
@@ -6,7 +6,7 @@
set -e
APP_DIR="/opt/cirux"
APP_DIR="/home/ubuntu/cirux"
LOG_FILE="/var/log/cirux-deploy.log"
BRANCH="main"
DEPLOY_SCRIPT="/opt/cirux/deploy-auto.sh"
@@ -26,7 +26,7 @@ while read oldrev newrev refname; do
# Verify health
sleep 5
if curl -sf http://localhost:3000/api/health > /dev/null 2>&1; then
if curl -sf http://localhost:3020/api/health > /dev/null 2>&1; then
echo "$(date '+%Y-%m-%d %H:%M:%S') - Deploy successful ✅" >> "$LOG_FILE"
else
echo "$(date '+%Y-%m-%d %H:%M:%S') - Health check failed ⚠️" >> "$LOG_FILE"