Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 34 lines (22 sloc) 771 Bytes
#!/bin/bash
# Runs the GHC app with gunicorn
echo "START /run-web.sh"
# Set the timezone.
/set-timezone.sh
# Configure: DB and plugins.
/configure.sh
source /venv/bin/activate .
cd /GeoHealthCheck
paver upgrade
# SCRIPT_NAME should not have value '/'
[ "${SCRIPT_NAME}" = '/' ] && export SCRIPT_NAME="" && echo "make SCRIPT_NAME empty from /"
echo "Running GHC WSGI on ${HOST}:${PORT} with ${WSGI_WORKERS} workers and SCRIPT_NAME=${SCRIPT_NAME}"
gunicorn --workers ${WSGI_WORKERS} \
--worker-class=${WSGI_WORKER_CLASS} \
--timeout ${WSGI_WORKER_TIMEOUT} \
--name="Gunicorn_GHC" \
--bind ${HOST}:${PORT} \
GeoHealthCheck.app:APP
# Built-in Flask server, deprecated
# python /GeoHealthCheck/GeoHealthCheck/app.py ${HOST}:${PORT}
echo "END /run-web.sh"