mirror of
https://github.com/open-webui/pipelines
synced 2025-05-15 09:55:45 +00:00
Added UV LOOP
This commit is contained in:
parent
8e98ea0352
commit
afa5d5e1f0
4
start.sh
4
start.sh
@ -4,6 +4,8 @@ HOST="${HOST:-0.0.0.0}"
|
|||||||
# Default value for PIPELINES_DIR
|
# Default value for PIPELINES_DIR
|
||||||
PIPELINES_DIR=${PIPELINES_DIR:-./pipelines}
|
PIPELINES_DIR=${PIPELINES_DIR:-./pipelines}
|
||||||
|
|
||||||
|
UV_LOOP="${UV_LOOP:-auto}"
|
||||||
|
|
||||||
# Function to reset pipelines
|
# Function to reset pipelines
|
||||||
reset_pipelines_dir() {
|
reset_pipelines_dir() {
|
||||||
if [ "$RESET_PIPELINES_DIR" = true ]; then
|
if [ "$RESET_PIPELINES_DIR" = true ]; then
|
||||||
@ -150,6 +152,6 @@ fi
|
|||||||
|
|
||||||
if [[ "$MODE" == "run" || "$MODE" == "full" ]]; then
|
if [[ "$MODE" == "run" || "$MODE" == "full" ]]; then
|
||||||
echo "Running via Mode: $MODE"
|
echo "Running via Mode: $MODE"
|
||||||
uvicorn main:app --host "$HOST" --port "$PORT" --forwarded-allow-ips '*'
|
uvicorn main:app --host "$HOST" --port "$PORT" --forwarded-allow-ips '*' --loop "$UV_LOOP"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user