app/app.py aktualisiert

This commit is contained in:
sascha 2025-12-27 11:17:27 +00:00
parent 9af5f29bb7
commit 9ba766baac

View File

@ -7,6 +7,25 @@ from difflib import SequenceMatcher
app = Flask(__name__)
print("--- DEBUG START ---")
# Wo bin ich gerade?
cwd = os.getcwd()
print(f"Ich befinde mich im Ordner: {cwd}")
# Was sehe ich hier?
try:
print(f"Dateien in {cwd}: {os.listdir(cwd)}")
except Exception as e:
print(f"Konnte {cwd} nicht lesen: {e}")
# Existiert /app?
if os.path.exists('/app'):
print(f"Dateien in /app: {os.listdir('/app')}")
else:
print("Der Ordner /app existiert gar nicht!")
print("--- DEBUG ENDE ---")
# DB Verbindung mit Retry-Logik
def get_db_connection():
max_retries = 5