我对部署应用程序的过程还不熟悉。我正在尝试部署一个绘制一些简单图形的python dash应用程序。部署过程似乎起作用了,但似乎有一些错误(该应用程序在本地主机上运行良好),heroku建议使用heroku logs --tail,以下是相同的输出:
2020-04-27T05:24:56.000000+00:00 app[api]: Build succeeded
2020-04-27T05:25:00.194708+00:00 heroku[web.1]: State changed from starting to crashed
2020-04-27T05:25:00.133048+00:00 app[web.1]: bash: gunicorm: command not found
2020-04-27T05:30:38.391341+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=blooming-everglades-47422.herokuapp.com request_id=ccf95c9e-6160-489f-a4f6-4420ee5dc48d fwd="123.63.203.210" dyno= connect= service= status=503 bytes= protocol=https
2020-04-27T05:30:39.117410+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=blooming-everglades-47422.herokuapp.com request_id=bd289515-3b5f-46fb-a3c2-34404fa8d249 fwd="123.63.203.210" dyno= connect= service= status=503 bytes= protocol=https
2020-04-27T05:30:42.092574+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=blooming-everglades-47422.herokuapp.com request_id=aacf9a1d-10aa-481a-a984-49404b81f446 fwd="123.63.203.210" dyno= connect= service= status=503 bytes= protocol=https什么是黑角兽?我还以为是黑角呢?!我还没有在我的项目中输入任何bash脚本。
任何帮助都将不胜感激。谢谢。
发布于 2020-05-16 22:42:18
尝试将此代码添加到定义app对象的代码中,如果您还没有这样做的话。
server = flask.Flask(__name__)
server.secret_key = os.environ.get('secret_key', str(randint(0, 1000000)))
app = dash.Dash(__name__,server=server,external_stylesheets=[dbc.themes.BOOTSTRAP])https://stackoverflow.com/questions/61452429
复制相似问题