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