Skip to content
Snippets Groups Projects
start.sh 698 B
Newer Older
#!/bin/bash

m431m's avatar
m431m committed
echo "Starting nginx"

/etc/init.d/nginx restart

m431m's avatar
m431m committed
echo "Starting gunicorn"
m431m's avatar
m431m committed
gunicorn config.wsgi:application \
    -b 0.0.0.0:5000 \
    --name OneGeoSuite-core \
    --workers ${GUNICORN_MAX_WORKERS:-2} \
    --threads ${GUNICORN_MAX_THREADS:-1} \
    --timeout ${GUNICORN_TIMEOUT:-1800} \
    --max-requests ${GUNICORN_MAX_REQUEST:-2000} \
    --worker-connections ${GUNICORN_MAX_WORKER_CONNECTIONS:-1000} \
    --log-level=info \
#    --bind=unix:/run/gunicorn/gunicorn_onegeosuite_core.sock \
#    --pid=/run/gunicorn/gunicorn_onegeosuite_core.pid
#    --user=www-data --group=www-data \
#    --capture-output \
#    --error-logfile /var/log/gunicorn/onegeosuite_core_errors.log \