mirror of
https://github.com/OpenByteInc/QuantDinger.git
synced 2026-09-28 15:22:56 +08:00
14 lines
316 B
Bash
14 lines
316 B
Bash
#!/bin/sh
|
|
set -eu
|
|
|
|
mkdir -p logs
|
|
|
|
echo "Starting QuantDinger Python API on ${PYTHON_API_HOST:-0.0.0.0}:${PYTHON_API_PORT:-5000}"
|
|
|
|
if [ "${FLASK_DEV_SERVER:-false}" = "true" ]; then
|
|
echo "FLASK_DEV_SERVER=true, using Flask development server."
|
|
exec python run.py
|
|
fi
|
|
|
|
exec gunicorn -c gunicorn_config.py "run:app"
|