mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-04-25 12:15:50 +03:00
[PR #32] [MERGED] Swap out Flask's default web server for Waitress #767
Labels
No labels
Fixed (Pending PR Merge)
Stale
bug
enhancement
enhancement
good first issue
help wanted
keep-open
needs more info
pull-request
question
theme
unfortunate
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/whoogle-search#767
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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/benbusby/whoogle-search/pull/32
Author: @RealOrangeOne
Created: 5/12/2020
Status: ✅ Merged
Merged: 5/12/2020
Merged by: @benbusby
Base:
master← Head:waitress📝 Commits (4)
5708f78Ignore venv when building docker file9182f11Remove reference to 8888 portbee8859Use waitress rather than Flask's built in web server28dfe87Actually add waitress to requirements📊 Changes
7 files changed (+20 additions, -14 deletions)
View changed files
📝
.dockerignore(+1 -0)📝
README.md(+5 -5)➕
app/__main__.py(+3 -0)📝
app/routes.py(+8 -5)📝
docker-compose.yml(+1 -1)📝
requirements.txt(+1 -0)📝
whoogle-search(+1 -3)📄 Description
Flask's dev server isn't designed for production use, in fact it's actively discouraged.
Waitress however is.
Gunicorn was also an option, but as there's multiple entrypoints for this application, and Gunicorn doesn't have a stable Python API, it wasn't viable. It's also a bit overkill for an application of this scale.
Also migrated the default port from 8888 to 5000. 5000 was used in more places. Rather than having 2 ports defined, it now just uses 1 everywhere.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.