Make flask app respect pterodactyl environment

This commit is contained in:
Nick Guy 2024-06-10 18:01:57 +01:00
parent 68a198cc91
commit 1efd32d50c

4
app.py
View file

@ -10,6 +10,4 @@ def hello_world(): # put application's code here
if __name__ == '__main__':
for key, value in os.environ.items():
print(f'{key}: {value}')
app.run()
app.run(host=os.environ["SERVER_IP"], port=int(os.environ["SERVER_PORT"]))