Update: Añado la variable de entorno "PORT" para futura configuracion
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user