safim-scorer / execution_engine /.ipynb_checkpoints /start_engine-checkpoint.sh
moreover's picture
push cfg_db
0b6da64
raw
history blame contribute delete
615 Bytes
#!/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 -