Spaces:
Sleeping
Sleeping
File size: 615 Bytes
339a658 acd4009 0b6da64 95b3372 339a658 74f3435 339a658 74f3435 339a658 74f3435 339a658 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
#!/usr/bin/env bash
echo $NUM_WORKERS
local_dir=$(ls /home/user)
echo $local_dir
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 - |