mirror of
https://github.com/ION606/static-site-hosting.git
synced 2026-05-14 22:16:54 +00:00
added waitress
This commit is contained in:
@@ -17,7 +17,7 @@ source .venv/bin/activate
|
||||
pip install -r requirements.txt
|
||||
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
|
||||
|
||||
|
||||
@@ -23,6 +23,8 @@ from werkzeug.exceptions import NotFound
|
||||
import os
|
||||
import shutil
|
||||
from datetime import datetime, timedelta
|
||||
from waitress import serve
|
||||
|
||||
|
||||
app = Flask(__name__)
|
||||
app.config["SECRET_KEY"] = "your-secret-key"
|
||||
@@ -309,4 +311,4 @@ if __name__ == "__main__":
|
||||
os.makedirs(app.config["UPLOAD_FOLDER"], exist_ok=True)
|
||||
with app.app_context():
|
||||
db.create_all()
|
||||
app.run(debug=True)
|
||||
serve(app, host="0.0.0.0", port=5121)
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user