Make flask app respect pterodactyl environment
This commit is contained in:
parent
68a198cc91
commit
1efd32d50c
1 changed files with 1 additions and 3 deletions
4
app.py
4
app.py
|
@ -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"]))
|
||||
|
|
Loading…
Reference in a new issue