BrickTracker/entrypoint.sh

17 lines
255 B
Bash
Raw Permalink Normal View History

2025-01-17 11:03:00 +01:00
#!/usr/bin/env sh
# Host
if [ -z "$BK_HOST" ]
then
export BK_HOST="0.0.0.0"
fi
# Port
if [ -z "$BK_PORT" ]
then
export BK_PORT=3333
fi
# Execute the WSGI server
gunicorn --bind "${BK_SERVER}:${BK_PORT}" "app:app" --worker-class "eventlet" "$@"