Jenkins builds from apps.json, pushes to Forgejo registry, and archives Coolify image tags; compose installs all apps on first site creation.
19 lines
548 B
Bash
19 lines
548 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
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
|