[英]I'm having an issue tying to deploy app on heroku. Erro Code h10
提前致謝。 我是初學者,如果這個問題很荒謬,請道歉。
我有一個 Procfile,看起來應該可以工作。
我嘗試添加
"scripts": {
"start": "node index.js"
}
到我的 package.json。
我的 heroku 日志內容如下:
2020-05-01T20:22:43.838621+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=rocky-anchorage-20795.herokuapp.com request_id=b5aebc83-44db-482e-9f57-543a84aadb90 fwd="162.84.137.120" dyno= connect= service= status=503 bytes= protocol=https
2020-05-01T20:22:45.166890+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=rocky-anchorage-20795.herokuapp.com request_id=7d65b439-4dd1-4c5f-ac2e-89ee3bae74f5 fwd="162.84.137.120" dyno= connect= service= status=503 bytes= protocol=https
代碼托管在這里:
問題出在我的 procfile 中,之前
web:node app.js
我加了個空格……
web: node app.js
啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.