From 1efd32d50c68d259b9dfea86e1ab043d43c16002 Mon Sep 17 00:00:00 2001 From: Nick Guy Date: Mon, 10 Jun 2024 18:01:57 +0100 Subject: [PATCH] Make flask app respect pterodactyl environment --- app.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app.py b/app.py index 530a0b0..22ef6c1 100644 --- a/app.py +++ b/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"]))