Commit b6ff0f78 authored by Christophe Benz's avatar Christophe Benz

Configure Heroku

parent 9ecc4857
web: gunicorn app:server --timeout 300
"""Interactive OpenDataFrance dashboard."""
import os
from random import randint
import dash
import dash_core_components as dcc
import dash_html_components as html
import flask
from dash.dependencies import Input, Output
import app_data
......@@ -50,7 +54,9 @@ def compute_bar_figure(reg_code=None, dep_code=None):
}
app = dash.Dash(__name__)
server = flask.Flask(__name__)
server.secret_key = os.environ.get("secret_key", str(randint(0, 1000000)))
app = dash.Dash(__name__, server=server)
app.layout = html.Div(
children=[
html.H1(children="Observatoire opendata des territoires"),
......
dash
pandas
\ No newline at end of file
gunicorn
pandas
......@@ -13,6 +13,7 @@ dash_renderer==1.2.2 # via dash
flask-compress==1.4.0 # via dash
flask==1.1.1 # via dash, flask-compress
future==0.18.2 # via dash
gunicorn==20.0.4
itsdangerous==1.1.0 # via flask
jinja2==2.10.3 # via flask
markupsafe==1.1.1 # via jinja2
......@@ -24,3 +25,6 @@ pytz==2019.3 # via pandas
retrying==1.3.3 # via plotly
six==1.13.0 # via plotly, python-dateutil, retrying
werkzeug==0.16.0 # via flask
# The following packages are considered to be unsafe in a requirements file:
# setuptools
python-3.8.1
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