"feat: Update app.py for improved functionality"
This commit is contained in:
@@ -4271,15 +4271,26 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
# Windows-spezifische Flask-Konfiguration für bessere Thread-Behandlung
|
# Windows-spezifische Flask-Konfiguration für bessere Thread-Behandlung
|
||||||
if os.name == 'nt':
|
if os.name == 'nt':
|
||||||
app.run(
|
try:
|
||||||
host="0.0.0.0",
|
# Windows: Ohne use_reloader um WERKZEUG_SERVER_FD Fehler zu vermeiden
|
||||||
port=5000,
|
app.run(
|
||||||
debug=True,
|
host="0.0.0.0",
|
||||||
threaded=True,
|
port=5000,
|
||||||
use_reloader=True,
|
debug=True,
|
||||||
reloader_interval=1,
|
threaded=True,
|
||||||
passthrough_errors=False
|
use_reloader=False, # Deaktiviere Auto-Reload für Windows
|
||||||
)
|
passthrough_errors=False
|
||||||
|
)
|
||||||
|
except Exception as e:
|
||||||
|
app_logger.warning(f"Windows-Debug-Server Fehler: {str(e)}")
|
||||||
|
app_logger.info("Fallback: Starte ohne Debug-Modus")
|
||||||
|
# Fallback: Ohne Debug-Features
|
||||||
|
app.run(
|
||||||
|
host="0.0.0.0",
|
||||||
|
port=5000,
|
||||||
|
debug=False,
|
||||||
|
threaded=True
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
app.run(
|
app.run(
|
||||||
host="0.0.0.0",
|
host="0.0.0.0",
|
||||||
|
Reference in New Issue
Block a user