Files
static-site-hosting/run.py
T
ION606 c1f26094de Split routes into multiple files (#2)
* split into files

* attempted path fix

* perms fix

* added missed functions

* fixed circular dependancy

* I hate splitting

* env fix

* path fix
2025-02-18 01:27:40 +00:00

12 lines
296 B
Python

from waitress import serve
import os
from app import create_app, db, config
app = create_app()
if __name__ == "__main__":
os.makedirs(app.config["UPLOAD_FOLDER"], exist_ok=True)
with app.app_context():
db.create_all()
serve(app, host="0.0.0.0", port=config.Config.PORT)