Update: Añado la variable de entorno "PORT" para futura configuracion

This commit is contained in:
2025-07-29 13:41:41 +02:00
parent 37013da56f
commit 20ae1d0b4c
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ import os
load_dotenv()
puerto = os.getenv("PORT")
monitor1 = os.getenv("MONITOR_ID_1")
monitor2 = os.getenv("MONITOR_ID_2")
@@ -61,4 +62,4 @@ def api_pie():
return Response(mensaje, mimetype='text/plain')
if __name__ == '__main__':
app.run(debug=True,host='192.168.82.156')
app.run(debug=True,host='192.168.82.156', port=puerto)