Description
Hi Chris and other dash users. My app works locally. In fact all it does it open up a web page for me (code below) that depends on some other files in a child directory. When I deploy to Heroku, following the steps here, the app crashes. I'm hoping that someone here can give me some idea of why this is happening. Here are the Heroku logs which I am trying to understand:
2017-08-30T08:00:56.503702+00:00 app[web.1]: self.stop() 2017-08-30T08:00:56.503582+00:00 app[web.1]: self.halt(reason=inst.reason, exit_status=inst.exit_status) 2017-08-30T08:00:56.504052+00:00 app[web.1]: time.sleep(0.1) 2017-08-30T08:00:56.504056+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 244, in handle_chld 2017-08-30T08:00:56.504296+00:00 app[web.1]: self.reap_workers() 2017-08-30T08:00:56.503706+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 393, in stop 2017-08-30T08:00:56.504299+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 524, in reap_workers 2017-08-30T08:00:56.504698+00:00 app[web.1]: raise HaltServer(reason, self.WORKER_BOOT_ERROR) 2017-08-30T08:00:56.504722+00:00 app[web.1]: gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3> 2017-08-30T08:00:56.634377+00:00 heroku[web.1]: State changed from up to crashed 2017-08-30T08:00:56.609496+00:00 heroku[web.1]: Process exited with status 1
Dash App:
`import dash
import dash_core_components as dcc
import dash_html_components as html
import os
import webbrowser
app = dash.Dash(name)
server = app.server
server.secret_key = os.environ.get('SECRET_KEY', 'abcdef')
app.css.append_css({"external_url": "https://codepen.io/chriddyp/pen/bWLwgP.css"})
app = dash.Dash()
app.layout = html.Div([
dcc.Input(id='my-id', value='initial value', type="text"),
html.Div(id='my-div')
])
url = "network/index.html"
webbrowser.get('firefox').open(url)
if name == 'main':
app.run_server(debug=False)`