added waitress

This commit is contained in:
2025-02-14 22:50:44 -05:00
parent df63996b57
commit 7453af6b08
3 changed files with 22 additions and 2 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ source .venv/bin/activate
pip install -r requirements.txt pip install -r requirements.txt
python app.py python app.py
``` ```
And that's it! The app should be available at http://localhost:5000 And that's it! The app should be available at http://localhost:5121
## Contributing ## Contributing
+3 -1
View File
@@ -23,6 +23,8 @@ from werkzeug.exceptions import NotFound
import os import os
import shutil import shutil
from datetime import datetime, timedelta from datetime import datetime, timedelta
from waitress import serve
app = Flask(__name__) app = Flask(__name__)
app.config["SECRET_KEY"] = "your-secret-key" app.config["SECRET_KEY"] = "your-secret-key"
@@ -309,4 +311,4 @@ if __name__ == "__main__":
os.makedirs(app.config["UPLOAD_FOLDER"], exist_ok=True) os.makedirs(app.config["UPLOAD_FOLDER"], exist_ok=True)
with app.app_context(): with app.app_context():
db.create_all() db.create_all()
app.run(debug=True) serve(app, host="0.0.0.0", port=5121)
+18
View File
@@ -0,0 +1,18 @@
APScheduler==3.11.0
blinker==1.9.0
click==8.1.8
Flask==3.1.0
Flask-APScheduler==1.13.1
Flask-Login==0.6.3
Flask-SQLAlchemy==3.1.1
greenlet==3.1.1
itsdangerous==2.2.0
Jinja2==3.1.5
MarkupSafe==3.0.2
python-dateutil==2.9.0.post0
six==1.17.0
SQLAlchemy==2.0.38
typing_extensions==4.12.2
tzlocal==5.3
waitress==3.0.2
Werkzeug==3.1.3