mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-17 05:45:09 +00:00
20 lines
567 B
Bash
Executable file
20 lines
567 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
#Gunicorn defaults
|
|
GUNICORN_THREADS=${GUNICORN_THREADS:-4}
|
|
GUNICORN_WORKERS=${GUNICORN_WORKERS:-2}
|
|
GUNICORN_TIMEOUT=${GUNICORN_TIMEOUT:-120}
|
|
|
|
echo "Booting Gunicorn with $GUNICORN_WORKERS workers and $GUNICORN_THREADS threads..."
|
|
|
|
exec /home/frappe/frappe-bench/env/bin/gunicorn \
|
|
--chdir=/home/frappe/frappe-bench/sites \
|
|
--bind=0.0.0.0:8000 \
|
|
--threads="$GUNICORN_THREADS" \
|
|
--workers="$GUNICORN_WORKERS" \
|
|
--worker-class=gthread \
|
|
--worker-tmp-dir=/dev/shm \
|
|
--timeout="$GUNICORN_TIMEOUT" \
|
|
--preload \
|
|
frappe.app:application
|