fix: deploy.sh deploy-auto.sh Dockerfile docker-compose.yml gitea-post-receive-hook.sh
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user