Skip to content

Commit

Permalink
Merge pull request #547 from Jamesits/master
Browse files Browse the repository at this point in the history
fix #542
  • Loading branch information
ngoduykhanh committed Sep 16, 2019
2 parents 7af7629 + 0318000 commit 89ac98a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/Production/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ cd /opt/powerdns-admin
GUNICORN_TIMEOUT="${GUINCORN_TIMEOUT:-120}"
GUNICORN_WORKERS="${GUNICORN_WORKERS:-4}"
GUNICORN_LOGLEVEL="${GUNICORN_LOGLEVEL:-info}"
BIND_ADDRESS="${BIND_ADDRESS:-0.0.0.0:80}"

if [ ! -f ./config.py ]; then
cat ./config_template.py ./docker/Production/config_docker.py > ./config.py
fi

GUNICORN_ARGS="-t ${GUNICORN_TIMEOUT} --workers ${GUNICORN_WORKERS} --bind 0.0.0.0:80 --log-level ${GUNICORN_LOGLEVEL}"
GUNICORN_ARGS="-t ${GUNICORN_TIMEOUT} --workers ${GUNICORN_WORKERS} --bind ${BIND_ADDRESS} --log-level ${GUNICORN_LOGLEVEL}"
if [ "$1" == gunicorn ]; then
flask db upgrade
exec "$@" $GUNICORN_ARGS
Expand Down

0 comments on commit 89ac98a

Please sign in to comment.