Bug Fixes
This commit is contained in:
5
main.py
5
main.py
@@ -1,8 +1,12 @@
|
|||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
from dotenv import load_dotenv
|
||||||
|
|
||||||
from frontend.app import app
|
from frontend.app import app
|
||||||
|
|
||||||
|
load_dotenv()
|
||||||
|
|
||||||
# Logging konfigurieren
|
# Logging konfigurieren
|
||||||
logging.basicConfig(
|
logging.basicConfig(
|
||||||
level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s"
|
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"
|
debug = os.getenv("FLASK_DEBUG", "False").lower() == "true"
|
||||||
host = os.getenv("FLASK_HOST", "0.0.0.0")
|
host = os.getenv("FLASK_HOST", "0.0.0.0")
|
||||||
port = int(os.getenv("FLASK_PORT", "8080"))
|
port = int(os.getenv("FLASK_PORT", "8080"))
|
||||||
|
print(port)
|
||||||
|
|
||||||
logger.info(f"Starting ChatBot application on {host}:{port}")
|
logger.info(f"Starting ChatBot application on {host}:{port}")
|
||||||
logger.info(f"Debug mode: {debug}")
|
logger.info(f"Debug mode: {debug}")
|
||||||
|
|||||||
@@ -1,36 +1,28 @@
|
|||||||
# Requirements for PY_ChatBot
|
astroid==3.3.11
|
||||||
# Core Framework
|
black==25.9.0
|
||||||
Flask>=2.3.0,<3.0.0
|
blinker==1.9.0
|
||||||
Werkzeug>=2.3.0,<3.0.0
|
click==8.3.0
|
||||||
|
dill==0.4.0
|
||||||
# Database & ORM (Optional for future expansion)
|
dotenv==0.9.9
|
||||||
SQLAlchemy>=2.0.0,<3.0.0
|
flake8==7.3.0
|
||||||
|
Flask==3.1.2
|
||||||
# Environment & Configuration
|
iniconfig==2.1.0
|
||||||
python-dotenv>=1.0.0
|
isort==6.1.0
|
||||||
|
itsdangerous==2.2.0
|
||||||
# Security & Authentication
|
Jinja2==3.1.6
|
||||||
bcrypt>=4.0.0
|
MarkupSafe==3.0.3
|
||||||
|
mccabe==0.7.0
|
||||||
# HTTP Client (for health checks and external APIs)
|
mypy_extensions==1.1.0
|
||||||
requests>=2.31.0
|
packaging==25.0
|
||||||
|
pathspec==0.12.1
|
||||||
# Date/Time utilities
|
platformdirs==4.4.0
|
||||||
python-dateutil>=2.8.0
|
pluggy==1.6.0
|
||||||
|
pycodestyle==2.14.0
|
||||||
# Development Dependencies (commented out for production)
|
pyflakes==3.4.0
|
||||||
# pytest>=7.4.0
|
Pygments==2.19.2
|
||||||
# pytest-flask>=1.2.0
|
pylint==3.3.8
|
||||||
# pytest-cov>=4.1.0
|
pytest==8.4.2
|
||||||
# black>=23.7.0
|
python-dotenv==1.1.1
|
||||||
# flake8>=6.0.0
|
pytokens==0.1.10
|
||||||
# mypy>=1.5.0
|
tomlkit==0.13.3
|
||||||
|
Werkzeug==3.1.3
|
||||||
# Production WSGI Server
|
|
||||||
gunicorn>=21.2.0
|
|
||||||
|
|
||||||
# Logging
|
|
||||||
colorlog>=6.7.0
|
|
||||||
|
|
||||||
# Utility
|
|
||||||
click>=8.1.0
|
|
||||||
|
|||||||
Reference in New Issue
Block a user