我是部署应用程序的新手。
我正在尝试部署绘制一些简单图形的python破折号应用程序。
部署过程似乎已经成功,但是似乎存在一些错误(该应用程序在localhost上运行良好),并且建议使用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脚本。
任何帮助将不胜感激。 谢谢。
答案 0 :(得分:0)
尝试将其添加到定义应用程序对象的代码中(如果尚未定义的话)。
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])