Bug Fixes
This commit is contained in:
5
main.py
5
main.py
@@ -1,8 +1,12 @@
|
||||
import logging
|
||||
import os
|
||||
|
||||
from dotenv import load_dotenv
|
||||
|
||||
from frontend.app import app
|
||||
|
||||
load_dotenv()
|
||||
|
||||
# Logging konfigurieren
|
||||
logging.basicConfig(
|
||||
level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s"
|
||||
@@ -15,6 +19,7 @@ if __name__ == "__main__":
|
||||
debug = os.getenv("FLASK_DEBUG", "False").lower() == "true"
|
||||
host = os.getenv("FLASK_HOST", "0.0.0.0")
|
||||
port = int(os.getenv("FLASK_PORT", "8080"))
|
||||
print(port)
|
||||
|
||||
logger.info(f"Starting ChatBot application on {host}:{port}")
|
||||
logger.info(f"Debug mode: {debug}")
|
||||
|
||||
Reference in New Issue
Block a user