Add gunicorn production server
This commit is contained in:
@@ -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
@@ -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)
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
flask
|
||||
requests
|
||||
bs4
|
||||
flask
|
||||
gunicorn
|
||||
requests
|
||||
|
||||
Reference in New Issue
Block a user