mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
Merge pull request #13346 from dh4340/patch-1
Fix: Use dynamic Python command to run uvicorn and support pyenv setups.
This commit is contained in:
commit
b9f55a44b7
1 changed files with 3 additions and 1 deletions
|
|
@ -65,4 +65,6 @@ if [ -n "$SPACE_ID" ]; then
|
||||||
export WEBUI_URL=${SPACE_HOST}
|
export WEBUI_URL=${SPACE_HOST}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
WEBUI_SECRET_KEY="$WEBUI_SECRET_KEY" exec uvicorn open_webui.main:app --host "$HOST" --port "$PORT" --forwarded-allow-ips '*' --workers "${UVICORN_WORKERS:-1}"
|
PYTHON_CMD=$(command -v python3 || command -v python)
|
||||||
|
|
||||||
|
WEBUI_SECRET_KEY="$WEBUI_SECRET_KEY" exec "$PYTHON_CMD" -m uvicorn open_webui.main:app --host "$HOST" --port "$PORT" --forwarded-allow-ips '*' --workers "${UVICORN_WORKERS:-1}"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue