mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[PR #4488] [CLOSED] Update start.sh #8292
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/4488
Author: @DawoodTouseef
Created: 8/9/2024
Status: ❌ Closed
Base:
main← Head:patch-1📝 Commits (1)
1495208Update start.sh📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
backend/start.sh(+2 -2)📄 Description
Key Changes:
Using gunicorn Instead of uvicorn:
Replace uvicorn with gunicorn while using the UvicornWorker to maintain compatibility with ASGI applications.
Command Format for gunicorn:
The uvicorn main:app is replaced by gunicorn main:app --worker-class uvicorn.workers.UvicornWorker.
The --host "$HOST" and --port "$PORT" options for uvicorn are replaced with --bind "$HOST:$PORT" in gunicorn.
Startup and Shutdown Behavior:
The logic for starting and stopping the web server during admin user creation remains the same, just with gunicorn commands.
With this script multiple request can be accepted it a same time.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.