cimeika-api / start.sh
Ihorog's picture
Create start.sh
97c4b8e verified
raw
history blame contribute delete
231 Bytes
#!/usr/bin/env bash
set -euo pipefail
export PORT="${PORT:-7860}"
export WORKERS="${WORKERS:-2}"
# Запуск gunicorn: один додаток app:app
exec gunicorn -w "${WORKERS}" -k gthread -t 120 -b "0.0.0.0:${PORT}" app:app