From 20ae1d0b4c75c45e65cf0d1fbedee5bfde7c2474 Mon Sep 17 00:00:00 2001 From: DAVIDB Date: Tue, 29 Jul 2025 13:41:41 +0200 Subject: [PATCH] =?UTF-8?q?Update:=20A=C3=B1ado=20la=20variable=20de=20ent?= =?UTF-8?q?orno=20"PORT"=20para=20futura=20configuracion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 3 ++- example.env | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 89f6267..33e6b12 100644 --- a/app.py +++ b/app.py @@ -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') \ No newline at end of file + app.run(debug=True,host='192.168.82.156', port=puerto) \ No newline at end of file diff --git a/example.env b/example.env index 66b9d32..6e51227 100644 --- a/example.env +++ b/example.env @@ -3,5 +3,6 @@ DB_PASSWORD=CSMKIOSCOS DB_HOST=192.168.1.76 DB_PORT=1521 DB_SID=REALRAC1 +PORT=5000 MONITOR_ID_1=1 MONITOR_ID_2=2 \ No newline at end of file