fix: resolve Nginx 503 error on rollback and apply package refactoring
All checks were successful
Deploy to OCIWP / deploy (push) Successful in 11m44s
All checks were successful
Deploy to OCIWP / deploy (push) Successful in 11m44s
This commit is contained in:
@@ -92,6 +92,10 @@ jobs:
|
||||
|
||||
if [ -z "$IS_TARGET_ALIVE" ]; then
|
||||
echo "Health Check Failed! $TARGET container crashed. Rollback."
|
||||
echo "Rolling back Nginx config to $OLD_TARGET..."
|
||||
cp ./nginx/${OLD_TARGET}.conf ./nginx/conf.d/default.conf
|
||||
echo "Restarting Nginx to apply rollback..."
|
||||
docker compose restart nginx || true
|
||||
echo "Stopping failed $TARGET containers..."
|
||||
docker compose stop gateway-$TARGET tool-sms-$TARGET tool-email-$TARGET tool-other-$TARGET tool-payment-$TARGET
|
||||
exit 1 # 파이프라인 실패 처리 (구버전은 그대로 유지됨)
|
||||
|
||||
Reference in New Issue
Block a user