簡體   English   中英

為什么我的 Heroku 部署無法識別我的 Procfile?

[英]Why is my Heroku deployment not recognising my Procfile?

我正在嘗試使用 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推heroku主控

我還刪除了 Procfile 的另一個副本,因為我認為它可能會導致沖突。 我確實認為這與我的目錄有關。 我確實對教程中的目錄感到很困惑,因為我愚蠢地親自命名了它們:(

這是我的更改要求的屏幕截圖

這也是我更新的日志:

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

然后我想我也會嘗試其他名稱,因為我認為我對名稱和目錄感到困惑。

嘗試了不同的名字

編輯 3:好的,所以我查看了那個網站,發現我這里有兩個應用程序。 請注意,我現在已經嘗試了它們。 請看下面的截圖:

我的兩個應用

[錯誤描述[3]

編輯4:

忘記在 Danslist 上添加 -a 開關,但仍然出現錯誤。 看截圖:

在此處輸入圖像描述

您的目錄名稱在 Profile 中包含一個空格,這會導致錯誤更改您的項目名稱。

更新#2: https://devcenter.heroku.com/articles/error-codes#h14-no-web-dynos-running

這很可能是將您的 web dynos 縮小到 0 dynos 的結果。 要修復它,請將您的 web 測功機縮放到 1 個或多個測功機:

heroku ps:scale web=1 ,如果這要求應用程序嘗試運行它。

heroku ps:scale web=1 -a your_heroku_appname

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM