在“完成”之后出现Heroku-Node.js错误H10

时间:2018-06-19 18:30:56

标签: node.js heroku crash

这是我在Heroku上的第一个部署。 我一直在错误和崩溃中部署我的应用程序。 我最接近使其工作了,我将其记录在日志中。当我在heroku日志页面上单击“打开应用程序”时出现错误。

2018-06-19T17:45:10.069097+00:00 heroku[web.1]: Starting process with   command `: node ./build/main.js`     
2018-06-19T17:45:13.402370+00:00 heroku[web.1]: State changed from starting to crashed
2018-06-19T17:45:13.381710+00:00 heroku[web.1]: Process exited with status 0
2018-06-19T17:46:57.688523+00:00 app[api]: Starting process with command `console` by user s.delaurens@gmail.com
2018-06-19T17:47:01.259757+00:00 heroku[run.7392]: Awaiting client
2018-06-19T17:47:01.276149+00:00 heroku[run.7392]: Starting process with command `console`
2018-06-19T17:47:01.450733+00:00 heroku[run.7392]: State changed from starting to up
2018-06-19T17:47:05.437755+00:00 heroku[run.7392]: Process exited with status 127
2018-06-19T17:47:05.446124+00:00 heroku[run.7392]: State changed from up to complete
2018-06-19T17:49:10.556520+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=api-pokedex-s.herokuapp.com request_id=e149137b-3274-42e7-bd65-b6b2c26f8cfb fwd="90.91.21.167" dyno= connect= service= status=503 bytes= protocol=https

在我的package.json中:

{
"name": "pokedex2",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"dev": "backpack",
"start": "node ./build/main.js"
 },
 "engines": {
 "node": "^8.11.2"
},
"author": "",
"license": "ISC",
"dependencies": {
  "backpack-core": "^0.7.0",
  "body-parser": "^1.18.3",
  "cors": "^2.8.4",
  "express": "^4.16.3",
  "mongoose": "^5.1.1",
  "node-fetch": "^2.1.2",
  "pug": "^2.0.3",
  "babel-preset-stage-3": "^6.24.1",
  "dotenv": "^5.0.1",
  "volleyball": "^1.5.0"
}
}

我已经正确设置了端口和procfile(具有web:node ./build/main.js的procfile)。

它在本地运行。

我尝试$ heroku run console运行了几秒钟,然后找不到$ bash:console命令。

$heroku restart什么也不做。

非常感谢您的建议和帮助,谢谢!

0 个答案:

没有答案