Skip to content

Commit

Permalink
Enforced exit code 0 in prestart.sh (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelhm authored Nov 13, 2023
1 parent e0c053f commit 8a6c952
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gunicorn/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,5 @@ else
fi

# Start Gunicorn
exec gunicorn -k "$WORKER_CLASS" -c "$GUNICORN_CONF" "$APP_MODULE"
echo "Starting Gunicorn: gunicorn -k \"$WORKER_CLASS\" -c \"$GUNICORN_CONF\" \"$APP_MODULE\""
exec gunicorn -k "$WORKER_CLASS" -c "$GUNICORN_CONF" "$APP_MODULE"
3 changes: 3 additions & 0 deletions prestart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ do
# Only run prestart.sh if present/
[ -x $prestart ] && $prestart
done

echo "Prestart Complete"
exit 0

0 comments on commit 8a6c952

Please sign in to comment.