[PR #4488] [CLOSED] Update start.sh #8292

Closed
opened 2025-11-11 17:50:10 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/4488
Author: @DawoodTouseef
Created: 8/9/2024
Status: Closed

Base: mainHead: patch-1


📝 Commits (1)

📊 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.

## 📋 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>
GiteaMirror added the pull-request label 2025-11-11 17:50:10 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#8292