mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-04-19 00:45:22 +00:00
feat: andere ports/bind ips erlauben
This commit is contained in:
parent
7c6a8515c6
commit
e1ee7fcda5
@ -327,10 +327,11 @@ def get_pdf():
|
||||
|
||||
if __name__ == '__main__':
|
||||
try:
|
||||
host= os.getenv("FLASK_RUN_HOST", "0.0.0.0")
|
||||
port = os.getenv("FLASK_RUN_PORT", 5000)
|
||||
app.run(debug=True, host="0.0.0.0", port=port)
|
||||
app.run(debug=True, host=host, port=port)
|
||||
except:
|
||||
print(f"Coud not bind to port {port}, set FLASK_RUN_PORT.")
|
||||
print(f"Coud not bind to host {host}:{port}, set FLASK_RUN_HOST and/or FLASK_RUN_PORT.")
|
||||
|
||||
|
||||
# PV Forecast:
|
||||
|
Loading…
x
Reference in New Issue
Block a user