I am trying to deploy my plotly app to the website using heroku. I followed the below steps for the same:
Created a virtual environment using pycharm using the version 3.8 of Python
Installed all the necessary libraries required to run my app on the virtual environment. which are Numpy, Plotly, Dash, Pandas=1.0.0 and gunicorn
Created a .gitignore file with the following contents:
- Created a Procfile with the following contents(dashboard-1 is the main .py file where my code is written):
6.. Used heroku cli and git to build and deploy my applications to the server. The application is successfully deployed but when I go to launch the application it gives me an error. The logs are as shown:
2021-01-07T07:32:47.773278+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 393, in stop
2021-01-07T07:32:47.773697+00:00 app[web.1]: time.sleep(0.1)
2021-01-07T07:32:47.773759+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 242, in handle_chld
2021-01-07T07:32:47.774108+00:00 app[web.1]: self.reap_workers()
2021-01-07T07:32:47.774157+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 525, in reap_workers
2021-01-07T07:32:47.774678+00:00 app[web.1]: raise HaltServer(reason, self.WORKER_BOOT_ERROR)
2021-01-07T07:32:47.774743+00:00 app[web.1]: gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
2021-01-07T07:32:47.930226+00:00 heroku[web.1]: Process exited with status 1
2021-01-07T07:32:47.978712+00:00 heroku[web.1]: State changed from up to crashed
2021-01-07T07:32:48.514470+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=dashboard-1995.herokuapp.com request_id=a6a82e6b-0012-44d8-afb9-53f2976f5356 fwd="114.79.136.133" dyno=web.1 connect=1ms service= status=503 bytes= protocol=https
2021-01-07T07:49:30.057615+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=dashboard-1995.herokuapp.com request_id=5f577916-82cf-46c0-bd44-0310a16f24e8 fwd="18.212.132.42" dyno= connect= service= status=503 bytes= protocol=http
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…