updated to import and serve app

This commit is contained in:
simplypower-bbj
2023-06-25 21:22:35 +02:00
parent eb0765d9d8
commit ccf7cb4ddf
+10 -3
View File
@@ -5,9 +5,16 @@ Command-line optinos:
--debug, -d Send more detailed log output to console.
"""
from pathlib import Path
from os import X_OK
from dotenv import load_dotenv
from waitress import serve
from setup_logging import setup_logging
from app import app
if __name__ == '__main__':
assert Path(__file__).exists()
# setup
load_dotenv()
setup_logging()
# serve app
serve(app, host='0.0.0.0', port=1706)