为什么在尝试将应用程序部署到Heroku时出现错误?

时间:2020-05-13 11:33:35

标签: django heroku

我正在尝试使用Heroku部署我的应用程序。

我尝试通过CLI进行尝试,还通过图形方式在其用户门户中进行了尝试。

我在构建日志中遇到了这个问题:

 Procfile declares types -> (none)

它没有读取我的Procfile。

以下是我的错误日志的一些最新信息:

2020-05-08T04:32:57.546072+00:00 app[api]: Deploy 02e1e06c by user djrgrey@gmail.com
2020-05-08T04:32:57.546072+00:00 app[api]: Release v7 created by user djrgrey@gmail.com
2020-05-08T04:33:05.475821+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=herokudanslist.herokuapp.com request_id=ff88cf27-54c2
-4611-b611-ce36c41b09f6 fwd="118.149.66.76" dyno= connect= service= status=503 bytes= protocol=https
2020-05-08T04:33:06.086210+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=herokudanslist.herokuapp.com request_id=a4
690f93-c8e3-4256-b46b-a8d1e69109c1 fwd="118.149.66.76" dyno= connect= service= status=503 bytes= protocol=https
2020-05-08T04:33:13.000000+00:00 app[api]: Build succeeded
2020-05-08T10:04:32.000000+00:00 app[api]: Build started by user djrgrey@gmail.com
2020-05-08T10:05:04.414084+00:00 app[api]: Release v8 created by user djrgrey@gmail.com
2020-05-08T10:05:04.414084+00:00 app[api]: Deploy 92e0c7b1 by user djrgrey@gmail.com
2020-05-08T10:05:37.245718+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=herokudanslist.herokuapp.com request_id=9cb80bd2-7cb6
-4e20-ad8a-e61aeeab0e02 fwd="118.149.66.76" dyno= connect= service= status=503 bytes= protocol=https
2020-05-08T10:05:39.210072+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=herokudanslist.herokuapp.com request_id=a2
9bf337-c13a-4eb7-83ef-e221bc69b6b7 fwd="118.149.66.76" dyno= connect= service= status=503 bytes= protocol=https
2020-05-08T10:05:40.000000+00:00 app[api]: Build succeeded

这不是文本文件。

这是我编辑的目录。我已解决的步骤:

  1. 重构名称

  2. 在本地运行

  3. git push heroku master

我还删除了Procfile的另一个副本,因为我认为这可能会引起冲突。我确实认为这与我的目录有关。我确实对本教程中的目录感到很困惑,因为我愚蠢地将它们命名为:(

Here is my screenshot as requested of my chnages

这也是我更新的日志:

2020-05-10T12:45:29.755415+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=herokudanslist.herokuapp.com request_id=e0
4a8cbd-ea93-408d-bc4a-02c712aac84d fwd="118.149.66.76" dyno= connect= service= status=503 bytes= protocol=https
2020-05-11T00:40:58.769115+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=herokudanslist.herokuapp.com request_id=dd461869-8299
-4eab-888c-c5ad06b13a22 fwd="118.149.66.76" dyno= connect= service= status=503 bytes= protocol=https
2020-05-11T00:40:59.344106+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=herokudanslist.herokuapp.com request_id=1c
21d6da-9b1b-4246-acc6-11e4648ec474 fwd="118.149.66.76" dyno= connect= service= status=503 bytes= protocol=https

编辑2:

根据另一篇文章的建议,我尝试了以下

heroku ps:scale web=1 -a Danslist_Project

然后我以为我也想尝试其他名称,因为我觉得我对名称和目录感到困惑。

Different Names Tried

编辑3: 好的,所以我看了看那个网站,发现我这里有两个应用程序。请注意,我现在已经尝试了它们两个。请参见以下屏幕截图:

my two apps

[Error Description[3]

编辑4:

忘记在Danslist上添加-a开关,但仍然出现错误。查看屏幕截图:

enter image description here

0 个答案:

没有答案