打开应用程序时出现应用程序错误

时间:2020-10-08 06:52:21

标签: heroku

在Heroku上,我可以很好地构建该应用程序,但是当我尝试打开它时,它说要检查日志。这是日志:

-----> Python app detected
-----> No change in requirements detected, installing from cache
-----> Installing pip 20.1.1, setuptools 47.1.1 and wheel 0.34.2
-----> Installing SQLite3
-----> Installing requirements with pip
-----> Discovering process types
   Procfile declares types -> worker
-----> Compressing...
   Done: 80.4M
-----> Launching...
   Released v4
   https://nedtrainbot.herokuapp.com/ deployed to Heroku

1 个答案:

答案 0 :(得分:0)

Dyno工作者用于后台作业:它在后台运行,以执行一些逻辑,批处理或什至通过HTTP访问服务。它无法响应传入的请求。

您必须使用Web Dyno才能在使用浏览器打开应用程序时看到某些内容:这通常称为应用程序的主目录。您需要使用一些Web框架(例如Django)或库(例如Flask)来获取传入请求并对其进行响应