From ccf7cb4ddfa9d07c7d038d50dd68031029aad342 Mon Sep 17 00:00:00 2001 From: simplypower-bbj Date: Sun, 25 Jun 2023 21:22:35 +0200 Subject: [PATCH] updated to import and serve app --- code/main.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/code/main.py b/code/main.py index c4ba96d..58c80ea 100644 --- a/code/main.py +++ b/code/main.py @@ -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() \ No newline at end of file + # setup + load_dotenv() + setup_logging() + # serve app + serve(app, host='0.0.0.0', port=1706) + \ No newline at end of file