我需要一些帮助在Heroku上部署Voila应用程序。我使用的是一个免费的Heroku账号。
可以在https://github.com/ostasis/One-dimensional-heroku中找到GitHub存储库
notebook使用Voila在本地运行良好,并在

不确定它是否有帮助,但它目前在https://nameless-coast-24689.herokuapp.com/
heroku logs --tail显示了以下内容
2020-06-28T05:51:24.602001+00:00 heroku[web.1]: State changed from crashed to starting
2020-06-28T05:51:36.982425+00:00 app[web.1]: Traceback (most recent call last):
2020-06-28T05:51:36.982443+00:00 app[web.1]: File "/app/.heroku/python/bin/voila", line 8, in <module>
2020-06-28T05:51:36.982603+00:00 app[web.1]: sys.exit(main())
2020-06-28T05:51:36.982619+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/traitlets/config/application.py", line 663, in launch_instance
2020-06-28T05:51:36.982943+00:00 app[web.1]: app.initialize(argv)
2020-06-28T05:51:36.982944+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/voila/app.py", line 342, in initialize
2020-06-28T05:51:36.983141+00:00 app[web.1]: raise ValueError('provided more than 1 argument: %r' % self.extra_args)
2020-06-28T05:51:36.983159+00:00 app[web.1]: ValueError: provided more than 1 argument: ['—-port=47763', 'one-dimensional-bin-packing.ipynb']
2020-06-28T05:51:37.090291+00:00 heroku[web.1]: Process exited with status 1
2020-06-28T05:51:37.569126+00:00 heroku[web.1]: State changed from starting to crashed
2020-06-28T05:51:51.000000+00:00 app[api]: Build succeeded
2020-06-28T05:53:26.592423+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=nameless-coast-24689.herokuapp.com request_id=8f3e8daa-5127-48cf-a1d0-c819a4e3a820 fwd="203.57.213.219" dyno= connect= service= status=503 bytes= protocol=https
2020-06-28T05:53:27.219010+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=nameless-coast-24689.herokuapp.com request_id=3587c11e-08bc-4d88-a715-43534a9e7169 fwd="203.57.213.219" dyno= connect= service= status=503 bytes= protocol=https在mybinder.org上,我使用了下面的environment.yml
name: python 3.7.4
channels:
- conda-forge
dependencies:
- python=3.7.4
- appmode=0.7.0
- pandas=0.25.1
- matplotlib=3.1.1
- pip=19.2.3
- pip:
- mip==1.8.2在Heruko上,我有以下requirements.txt
appmode
matplotlib
mip
pandas
voilarequirements.txt有什么问题吗
下面的Procfile
web: voila —-port=$PORT --no-browser one-dimensional-bin-packing.ipynb下面的runtime.txt
python-3.7.6发布于 2020-10-28 05:28:57
我也有同样的问题。通过将--enable_nbextensions=True选项添加到Procfile中的voila命令,成功修复了该问题,因此在您的示例中如下所示:
web: voila —-port=$PORT --no-browser --enable_nbextensions=True one-dimensional-bin-packing.ipynb在此示例存储库中找到了此修复:https://github.com/voila-dashboards/voila-heroku
https://stackoverflow.com/questions/62618948
复制相似问题