Files
canonical-canonical.com/entrypoint
Robin Winslow bfa20a652a Create Greenhouse and Partners API classes
This allows us to pass a Talisker session through to
all API functions, replacing the canonicalwebteam.http.CachedSession.
2020-04-02 09:58:41 +01:00

12 lines
303 B
Bash
Executable File

#! /usr/bin/env bash
set -e
RUN_COMMAND="talisker.gunicorn.gevent webapp.app:app --bind $1 --worker-class gevent --name talisker-`hostname`"
if [ "${FLASK_DEBUG}" = true ] || [ "${FLASK_DEBUG}" = 1 ]; then
RUN_COMMAND="${RUN_COMMAND} --reload --log-level debug --timeout 9999"
fi
${RUN_COMMAND}