Skip to content

Commit

Permalink
fix: Remove production check in entryfile (#4792)
Browse files Browse the repository at this point in the history
  • Loading branch information
steverydz authored Aug 2, 2024
1 parent 2477f2b commit bbd7d61
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@

set -e

if ["${ENVIRONMENT}" = "production"]; then
RUN_COMMAND="talisker.gunicorn.gevent webapp.app:create_app() --bind $1 --worker-class gevent --workers 2 --name talisker-`hostname`"
else
RUN_COMMAND="talisker.gunicorn.gevent webapp_beta.app:app --bind $1 --worker-class gevent --workers 2 --name talisker-`hostname`"
fi
RUN_COMMAND="talisker.gunicorn.gevent webapp_beta.app:app --bind $1 --worker-class gevent --workers 2 --name talisker-`hostname`"

if [ "${FLASK_DEBUG}" = true ] || [ "${FLASK_DEBUG}" = 1 ]; then
RUN_COMMAND="${RUN_COMMAND} --reload --log-level debug --timeout 9999"
Expand Down

0 comments on commit bbd7d61

Please sign in to comment.