Skip to content

Commit

Permalink
exclude gunicorn.conf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
khvn26 committed Mar 28, 2024
1 parent 13264fa commit 91c45af
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 18 deletions.
16 changes: 0 additions & 16 deletions api/scripts/gunicorn.conf.py

This file was deleted.

12 changes: 10 additions & 2 deletions api/scripts/run-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,16 @@ function serve() {
python manage.py waitfordb

exec gunicorn --bind 0.0.0.0:8000 \
--worker-tmp-dir=/dev/shm \
--config=/app/scripts/gunicorn.conf.py \
--worker-tmp-dir /dev/shm \
--timeout ${GUNICORN_TIMEOUT:-30} \
--workers ${GUNICORN_WORKERS:-3} \
--threads ${GUNICORN_THREADS:-2} \
--access-logfile $ACCESS_LOG_LOCATION \
--logger-class ${GUNICORN_LOGGER_CLASS:-'util.logging.GunicornJsonCapableLogger'} \
--access-logformat ${ACCESS_LOG_FORMAT:-'%(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s" %({origin}i)s %({access-control-allow-origin}o)s'} \
--keep-alive ${GUNICORN_KEEP_ALIVE:-2} \
${STATSD_HOST:+--statsd-host $STATSD_HOST:$STATSD_PORT} \
${STATSD_HOST:+--statsd-prefix $STATSD_PREFIX} \
app.wsgi
}
function run_task_processor() {
Expand Down

0 comments on commit 91c45af

Please sign in to comment.