app/app.py aktualisiert
This commit is contained in:
parent
9ba766baac
commit
0832d52556
18
app/app.py
18
app/app.py
@ -7,24 +7,6 @@ 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():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user