adiciones para usar servidor flask y proxies en apache

parent f158fda1
......@@ -4,6 +4,9 @@ import plotly.graph_objects as go
import plotly.express as px
import requests
import numpy as np
+import flask
+server = flask.Flask(__name__)
# algunos parámetros globales
url = 'https://nutricion.c3.unam.mx/nd/'
......@@ -86,6 +89,7 @@ external_stylesheets = [
},
]
app = Dash(__name__, external_stylesheets=external_stylesheets)
app = Dash(__name__, external_stylesheets=external_stylesheets, server=server, url_base_pathname='/nutri/inventario/')
app.title = "NutrINDmex. Inventario de datos"
app.layout = html.Div(children=[
......@@ -514,4 +518,4 @@ def update_charts(etapaSel,min_comidas, min_glucosa, medidaDet, etapaDet, visita
if __name__ == "__main__":
app.run_server(debug=True, port=8051, host='0.0.0.0')
app.run_server(debug=True, port=8090, host='0.0.0.0')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment