From 8fc43af4778e7f4474a5f5cc34a624e97573e7e6 Mon Sep 17 00:00:00 2001 From: MathiasDPX Date: Sat, 19 Oct 2024 14:47:30 +0200 Subject: [PATCH] Add port and host to env --- .env.example | 4 +++- app.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 1d3e84b..fb2fb15 100644 --- a/.env.example +++ b/.env.example @@ -1 +1,3 @@ -JAWG_API_KEY="Votre clé d'API jawg.io" \ No newline at end of file +JAWG_API_KEY="Votre clé d'API jawg.io" +HOST="0.0.0.0" +PORT=5000 \ No newline at end of file diff --git a/app.py b/app.py index 38221ba..a6f7533 100644 --- a/app.py +++ b/app.py @@ -114,4 +114,4 @@ def home(): JAWG_API_KEY=getenv("JAWG_API_KEY")) if __name__ == '__main__': - app.run() \ No newline at end of file + app.run(host=getenv("HOST"), port=getenv("PORT")) \ No newline at end of file