Browse Source

Update script to capture stdout/stderr

pull/2003/head
Hironsan 2 years ago
parent
commit
c2980693e3
2 changed files with 14 additions and 3 deletions
  1. 8
      tools/prod-django.sh
  2. 9
      tools/run.sh

8
tools/prod-django.sh

@ -31,4 +31,10 @@ if [[ -n "${ADMIN_USERNAME}" ]] && [[ -n "${ADMIN_PASSWORD}" ]] && [[ -n "${ADMI
fi
echo "Starting django"
gunicorn --bind="${HOST:-0.0.0.0}:${PORT:-8000}" --workers="${WORKERS:-4}" config.wsgi --timeout 300
gunicorn \
--bind="${HOST:-0.0.0.0}:${PORT:-8000}" \
--workers="${WORKERS:-4}" \
--timeout=300 \
--capture-output \
--log-level info \
config.wsgi

9
tools/run.sh

@ -35,8 +35,13 @@ if [[ -n "${ADMIN_USERNAME}" ]] && [[ -n "${ADMIN_PASSWORD}" ]] && [[ -n "${ADMI
fi
echo "Starting django"
# gunicorn --bind="0.0.0.0:${PORT:-8000}" --workers="${WORKERS:-4}" app.wsgi --timeout 300
gunicorn --bind="0.0.0.0:${PORT:-8000}" --workers="${WORKERS:-1}" config.wsgi --timeout=300 &
gunicorn \
--bind="0.0.0.0:${PORT:-8000}" \
--workers="${WORKERS:-1}" \
--timeout=300 \
--capture-output \
--log-level info \
config.wsgi &
gunicorn_pid="$!"
echo "Starting celery"

Loading…
Cancel
Save