mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-04-19 08:55:15 +00:00
change default port to 3000
This commit is contained in:
parent
738fa12822
commit
916a8301b3
2
.env
2
.env
@ -1,5 +1,5 @@
|
|||||||
EOS_VERSION=latest
|
EOS_VERSION=latest
|
||||||
EOS_PORT=8000
|
EOS_PORT=3000
|
||||||
|
|
||||||
MARIADB_VERSION=11.1.6
|
MARIADB_VERSION=11.1.6
|
||||||
PYTHON_VERSION=3.12.6
|
PYTHON_VERSION=3.12.6
|
||||||
|
@ -350,7 +350,7 @@ def root():
|
|||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
try:
|
try:
|
||||||
host= os.getenv("FLASK_RUN_HOST", "0.0.0.0")
|
host= os.getenv("FLASK_RUN_HOST", "0.0.0.0")
|
||||||
port = os.getenv("FLASK_RUN_PORT", 5000)
|
port = os.getenv("FLASK_RUN_PORT", 3000)
|
||||||
app.run(debug=True, host=host, port=port)
|
app.run(debug=True, host=host, port=port)
|
||||||
except:
|
except:
|
||||||
print(f"Coud not bind to host {host}:{port}, set FLASK_RUN_HOST and/or FLASK_RUN_PORT.")
|
print(f"Coud not bind to host {host}:{port}, set FLASK_RUN_HOST and/or FLASK_RUN_PORT.")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user