Add port and host to env

This commit is contained in:
Mathias DUPEUX 2024-10-19 14:47:30 +02:00
parent 491454b995
commit 8fc43af477
2 changed files with 4 additions and 2 deletions

View file

@ -1 +1,3 @@
JAWG_API_KEY="Votre clé d'API jawg.io"
JAWG_API_KEY="Votre clé d'API jawg.io"
HOST="0.0.0.0"
PORT=5000

2
app.py
View file

@ -114,4 +114,4 @@ def home():
JAWG_API_KEY=getenv("JAWG_API_KEY"))
if __name__ == '__main__':
app.run()
app.run(host=getenv("HOST"), port=getenv("PORT"))