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() load_dotenv()
puerto = os.getenv("PORT")
monitor1 = os.getenv("MONITOR_ID_1") monitor1 = os.getenv("MONITOR_ID_1")
monitor2 = os.getenv("MONITOR_ID_2") monitor2 = os.getenv("MONITOR_ID_2")
@@ -61,4 +62,4 @@ def api_pie():
return Response(mensaje, mimetype='text/plain') return Response(mensaje, mimetype='text/plain')
if __name__ == '__main__': if __name__ == '__main__':
app.run(debug=True,host='192.168.82.156') app.run(debug=True,host='192.168.82.156', port=puerto)
+1
View File
@@ -3,5 +3,6 @@ DB_PASSWORD=CSMKIOSCOS
DB_HOST=192.168.1.76 DB_HOST=192.168.1.76
DB_PORT=1521 DB_PORT=1521
DB_SID=REALRAC1 DB_SID=REALRAC1
PORT=5000
MONITOR_ID_1=1 MONITOR_ID_1=1
MONITOR_ID_2=2 MONITOR_ID_2=2