generated from bisco/codex-bootstrap
fix: suppress application healthcheck logs
This commit is contained in:
+1
-1
@@ -21,4 +21,4 @@ USER django
|
||||
|
||||
EXPOSE 8000
|
||||
ENTRYPOINT ["./entrypoint.sh"]
|
||||
CMD ["gunicorn", "config.wsgi:application", "--bind", "0.0.0.0:8000", "--workers", "2", "--access-logfile", "-"]
|
||||
CMD ["gunicorn", "config.wsgi:application", "--bind", "0.0.0.0:8000", "--workers", "2", "--log-level", "warning"]
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
set -eu
|
||||
|
||||
attempt=1
|
||||
until python manage.py migrate --noinput; do
|
||||
until python manage.py migrate --noinput --verbosity 0; do
|
||||
if [ "$attempt" -ge 10 ]; then
|
||||
echo "Database migrations failed after $attempt attempts." >&2
|
||||
exit 1
|
||||
@@ -11,5 +11,5 @@ until python manage.py migrate --noinput; do
|
||||
sleep 2
|
||||
done
|
||||
|
||||
python manage.py collectstatic --noinput
|
||||
python manage.py collectstatic --noinput --verbosity 0
|
||||
exec "$@"
|
||||
|
||||
Reference in New Issue
Block a user