使用plotly dash应用程序在Elastic Beanstalk上出现内部500错误

时间:2019-03-11 08:04:23

标签: python amazon-elastic-beanstalk plotly-dash

我在plotly上创建了一个可视化仪表板。它可以在本地服务器上完美运行。

但是当我将其上传到弹性beantalk时,它显示内部500错误,请参见下文

This is the error which is showing up.

logs

1 个答案:

答案 0 :(得分:0)

对于仍在寻找解决方案的任何人,这是application.py的设置方式

import dash

app = dash.Dash(__name__)
application = app.server
.
. # your stuff ... 
.
if __name__ == '__main__':
    application.run(debug=True)