This commit is contained in:
2024-03-29 23:19:57 +01:00
parent 3ccea3ef9c
commit e4368f5fd0
+6 -3
View File
@@ -68,13 +68,16 @@ def update_music_list():
)
return return_data
def flask_debug():
app.run(debug=True, use_reloader=False, host='0.0.0.0', port=5000)
if __name__ == "__main__":
print(app.logger.name)
rescan()
thread = threading.Thread(target=thread_rescan, args=(1,))
thread.start()
app.run(debug=True, host="0.0.0.0")
threading.Thread(target=flask_debug).start()
threading.Thread(target=thread_rescan, args=(1,)).start()
#app.run(debug=True, host="0.0.0.0")
#from waitress import serve
#serve(app, host="0.0.0.0", port=5000)