mirror of
https://github.com/ION606/static-site-hosting.git
synced 2026-06-06 07:52:58 +00:00
c1f26094de
* split into files * attempted path fix * perms fix * added missed functions * fixed circular dependancy * I hate splitting * env fix * path fix
12 lines
296 B
Python
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)
|