app/app.py aktualisiert
This commit is contained in:
parent
9af5f29bb7
commit
9ba766baac
19
app/app.py
19
app/app.py
@ -7,6 +7,25 @@ from difflib import SequenceMatcher
|
|||||||
|
|
||||||
app = Flask(__name__)
|
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
|
# DB Verbindung mit Retry-Logik
|
||||||
def get_db_connection():
|
def get_db_connection():
|
||||||
max_retries = 5
|
max_retries = 5
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user