Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Commit

Permalink
docker: allow uwsgi opts to be set from env
Browse files Browse the repository at this point in the history
  • Loading branch information
aahunter committed Nov 23, 2016
1 parent 2c0cd01 commit 106d47f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ function defaults {
: ${KERBEROSPORT:="88"}
: ${LDAPSERVER:="ldap"}
: ${LDAPPORT:="389"}
: ${UWSGI_OPTS:="--die-on-term --ini /app/uwsgi/docker.ini"}
: ${YABIURL:="http://$DOCKER_ROUTE:$RUNSERVERPORT/"}

: ${DBUSER:="webapp"}
Expand Down Expand Up @@ -159,14 +160,13 @@ fi
if [ "$1" = 'uwsgi' ]; then
echo "[Run] Starting uwsgi"

: ${UWSGI_OPTS="/app/uwsgi/docker.ini"}
echo "UWSGI_OPTS is ${UWSGI_OPTS}"

_django_collectstatic
_django_migrate
_django_check_deploy

exec uwsgi --die-on-term --ini ${UWSGI_OPTS}
exec uwsgi ${UWSGI_OPTS}
fi

# runserver entrypoint
Expand Down

0 comments on commit 106d47f

Please sign in to comment.