【发布时间】:2012-12-28 16:20:52
【问题描述】:
我将我的应用部署到 Heroku。这是一个 node.js + express + socket.io 应用程序,这是 package.json 文件
{
"name": "game_test",
"author": "Ilya",
"description": "A test app for our board game",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node app"
},
"dependencies": {
"express": "3.0.6",
"jade": "*",
"socket.io" : "*"
},
"engines": {
"node": "0.8.14"
}
}
这是我得到的日志:
heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=game-test-1.herokuapp.com fwd=37.26.146.185 dyno= queue= wait= connect= service= status=503 bytes=
heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=game-test-1.herokuapp.com fwd=37.26.146.185 dyno= queue= wait= connect= service= status=503 bytes=
什么意思?
【问题讨论】:
-
“App crashed”的意思很明显:你的应用程序崩溃了。在您的日志中进一步查看原因,或
heroku restart再次启动它,这样您就可以看到它再次崩溃。 -
我也有同样的问题。你是怎么解决的?
-
此问题有 1 个答案,到目前为止已收到 6 次投票...请选择该答案作为此问题的正确答案。
-
嗨@ilyo!你能批准我对此的回答吗?它已经 7 岁了,并且一直在帮助人们:) 谢谢!