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.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/4488
**Author:** [@DawoodTouseef](https://github.com/DawoodTouseef)
**Created:** 8/9/2024
**Status:** ❌ Closed
**Base:** `main` ← **Head:** `patch-1`
---
### 📝 Commits (1)
- [`1495208`](https://github.com/open-webui/open-webui/commit/1495208e810dba89f3cab0f9a8c3aa127748e3a5) Update start.sh
### 📊 Changes
**1 file changed** (+2 additions, -2 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/start.sh` (+2 -2)
</details>
### 📄 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.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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.