Spaces:
Sleeping
Sleeping
| echo $NUM_WORKERS | |
| gunicorn \ | |
| -w ${NUM_WORKERS} \ | |
| --bind 0.0.0.0:${GUNICORN_PORT} \ | |
| --timeout 0 \ | |
| --log-level ${LOG_LEVEL} \ | |
| "wsgi:app" | |
| # #!/usr/bin/env bash | |
| # set -euo pipefail | |
| # PORT_TO_USE="${PORT:-7860}" | |
| # HOST="0.0.0.0" | |
| # WORKERS="${NUM_WORKERS:-2}" | |
| # LOG="${LOG_LEVEL:-info}" | |
| # exec gunicorn "wsgi:app" \ | |
| # --bind "${HOST}:${PORT_TO_USE}" \ | |
| # --workers "${WORKERS}" \ | |
| # --timeout 180 \ | |
| # --graceful-timeout 30 \ | |
| # --keep-alive 65 \ | |
| # --log-level "${LOG}" \ | |
| # --access-logfile - \ | |
| # --error-logfile - |