Add gunicorn production server

This commit is contained in:
dablenparty
2025-10-01 12:00:35 -04:00
parent 71bfa80778
commit 53cf57ec60
6 changed files with 26 additions and 15 deletions
+4
View File
@@ -0,0 +1,4 @@
from os import environ
# https://docs.gunicorn.org/en/stable/settings.html#settings
bind = f"0.0.0.0:{environ.get('PORT', 5000)}"
+2 -1
View File
@@ -260,4 +260,5 @@ def get_article(path):
return "Invalid URL", 400
app.run(host="0.0.0.0", port=5000, debug=False)
if __name__ == "__main__":
app.run(host="0.0.0.0", port=5000, debug=False)
+3 -2
View File
@@ -1,3 +1,4 @@
flask
requests
bs4
flask
gunicorn
requests