简体   繁体   English

Heroku 找不到应用程序错误

[英]Heroku failed to find application app error

Trying to deploy my dash plotly dashboard on Heroku but getting this error:尝试在 Heroku 上部署我的 dash plotly 仪表板,但收到此错误:

2020-02-12T20:06:28.207580+00:00 heroku[web.1]: Starting process with command `gunicorn app:server`
2020-02-12T20:06:34.455328+00:00 heroku[web.1]: State changed from starting to up
2020-02-12T20:07:03.644528+00:00 app[web.1]: WORKER TIMEOUT (pid:10)
2020-02-12T20:07:04.647635+00:00 app[web.1]: WORKER TIMEOUT (pid:11)
2020-02-12T20:07:15.625829+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=GET path="/" host=kalinaxchallenge.herokuapp.com request_id=f2e2ef3e-c454-45fc-a5f0-f3e4fa1f59e1 fwd="197.221.254.77" dyno=web.1 connect=1ms service=30000ms status=503 bytes=0 protocol=https
2020-02-12T20:07:22.939065+00:00 app[web.1]: Failed to find application: 'app'
2020-02-12T20:07:28.354927+00:00 app[web.1]: Failed to find application: 'app'
2020-02-12T20:07:29.073920+00:00 heroku[web.1]: State changed from up to crashed
2020-02-12T20:07:28.813680+00:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=GET path="/favicon.ico" host=kalinaxchallenge.herokuapp.com request_id=7c1977fe-5495-4327-990f-68a433ed2269 fwd="197.221.254.77" dyno=web.1 connect=1ms service=11173ms status=503 bytes=0 protocol=https
2020-02-12T20:07:29.059525+00:00 heroku[web.1]: Process exited with status 4

my procfile:我的档案:

web: gunicorn app:server 

and my requirements.txt和我的要求.txt

dash_core_components==1.5.1
dash==1.6.1
dash_html_components==1.0.2
pandas==0.25.2
plotly==4.2.1
gunicorn==19.0.0
numpy==1.17.4

and my app.py和我的 app.py

if __name__ == '__main__':
        app.run_server(debug=True)

The app runs perfectly locally该应用程序在本地完美运行

Seems to be a weird error message, atleast to me because this is the structure of my project似乎是一个奇怪的错误信息,至少对我来说,因为这是我项目的结构

Procfile
app.json
app.py
dataset1
dataset2
requirements.txt

I'm not sure why its failing to find the app application when its right there我不知道为什么它就在那里时找不到应用程序

NOTE: I don't have a folder named app and deleted app.json注意:我没有名为 app 的文件夹并删除了 app.json

我通过将此行添加到我的 app.py 解决了这个问题

server = app.server

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在“Django 项目名称”中找不到属性“应用程序”。 Heroku 应用部署 - Failed to find attribute 'application' in 'Django project name'. Heroku app deploy 错误:gunicorn:无法在“app”中找到应用程序 object“app” - Error: gunicorn: Failed to find application object 'app' in 'app' 启动 Flask 应用程序时出错,出现错误“无法找到 Flask 应用程序” - Error launching Flask app with error "Failed to find Flask application" Heroku 上的 Django 应用程序:应用程序错误 - Django app on Heroku: Application Error Heroku 应用程序成功部署,但在加载站点时收到应用程序错误。 但我似乎可以找到一个错误 - Heroku app successfully deploying, but receiving application error when loading site. But I can seem to find an error 在“ app” gunicorn中找不到应用程序对象“ app” - Failed to find application object 'app' in 'app' gunicorn 错误:无法在模块“app”中找到 Flask 应用程序或工厂。 使用 'FLASK_APP=app:name' 指定一个 - Error: Failed to find Flask application or factory in module 'app'. Use 'FLASK_APP=app:name' to specify one Heroku 上的 Flask:找不到属性<app_name>在运行脚本中:error H10 desc="App crashed"</app_name> - Flask on Heroku: failed to find attribute <app_name> in run script: error H10 desc="App crashed" 部署 Dash 应用程序时出现 Heroku 应用程序错误 - Heroku Application Error when deploying Dash app Heroku 应用部署成功但应用报错 - Heroku app deployed successfully but Application Error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM