2016-06-12 103 views
0

这些是错误日志:meteor app成功部署到heroku。 heroku当我去的url错误

Heroku本地运行完全正常。有谁知道这些错误日志是什么意思,我需要做什么来解决它?

谢谢。

我将节点版本更改为0.10.45,因为我听说这是heroku需要运行流星应用程序的。

事情发生了变化,但现在我得到了npm错误。我相信npm版本是2.1+。

请注意,因为我没有在应用程序中使用mongo数据库,所以我没有在heroku配置中包含mongo:labs设置。这是否也会破坏事物?

2016-06-13T03:56:13.082236+00:00 app[web.1]: npm ERR! Or if that isn't available, you can get their info via: 
2016-06-13T03:56:13.082363+00:00 app[web.1]: npm ERR! 
2016-06-13T03:56:13.085838+00:00 app[web.1]: npm ERR!  /app/npm-debug.log 
2016-06-13T03:56:13.861094+00:00 heroku[web.1]: State changed from starting to crashed 
2016-06-13T03:56:15.460115+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=keela.herokuapp.com request_id=eb256901-593c-43a0-be3e-e4347daecf40 fwd="206.108.215.194" dyno= connect= service= status=503 bytes= 
2016-06-13T03:56:13.082236+00:00 app[web.1]: npm ERR! Or if that isn't available, you can get their info via: 
2016-06-13T03:56:13.082494+00:00 app[web.1]: npm ERR!  npm owner ls keela 
2016-06-13T03:56:13.085156+00:00 app[web.1]: 
2016-06-13T03:56:13.085479+00:00 app[web.1]: npm ERR! Please include the following file with any support request: 
2016-06-13T03:56:13.861094+00:00 heroku[web.1]: State changed from starting to crashed 
2016-06-13T03:56:13.846631+00:00 heroku[web.1]: Process exited with status 1 
2016-06-13T03:56:15.460115+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=keela.herokuapp.com request_id=eb256901-593c-43a0-be3e-e4347daecf40 fwd="206.108.215.194" dyno= connect= service= status=503 bytes= 
2016-06-13T03:56:13.082236+00:00 app[web.1]: npm ERR! Or if that isn't available, you can get their info via: 
2016-06-13T03:56:13.082363+00:00 app[web.1]: npm ERR! 
2016-06-13T03:56:13.846631+00:00 heroku[web.1]: Process exited with status 1 
2016-06-13T03:56:15.460115+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=keela.herokuapp.com request_id=eb256901-593c-43a0-be3e-e4347daecf40 fwd="206.108.215.194" dyno= connect= service= status=503 bytes= 
2016-06-13T03:56:13.082236+00:00 app[web.1]: npm ERR! Or if that isn't available, you can get their info via: 
2016-06-13T03:56:13.082363+00:00 app[web.1]: npm ERR! 
2016-06-13T03:56:13.082494+00:00 app[web.1]: npm ERR!  npm owner ls keela 
2016-06-13T03:56:13.085156+00:00 app[web.1]: 
2016-06-13T03:56:13.082702+00:00 app[web.1]: npm ERR! There is likely additional logging output above. 
2016-06-13T03:56:13.085479+00:00 app[web.1]: npm ERR! Please include the following file with any support request: 
2016-06-13T03:56:13.085838+00:00 app[web.1]: npm ERR!  /app/npm-debug.log 
2016-06-13T03:56:13.846631+00:00 heroku[web.1]: Process exited with status 1 
2016-06-13T03:56:16.056881+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=keela.herokuapp.com request_id=45e1c2db-39c7-427f-b115-5a5927267642 fwd="206.108.215.194" dyno= connect= service= status=503 bytes= 
2016-06-13T03:56:13.082236+00:00 app[web.1]: npm ERR! Or if that isn't available, you can get their info via: 
2016-06-13T03:56:13.082494+00:00 app[web.1]: npm ERR!  npm owner ls keela 
2016-06-13T03:56:13.082702+00:00 app[web.1]: npm ERR! There is likely additional logging output above. 
2016-06-13T03:56:13.085838+00:00 app[web.1]: npm ERR!  /app/npm-debug.log 
2016-06-13T03:56:13.861094+00:00 heroku[web.1]: State changed from starting to crashed 
2016-06-13T03:56:13.846631+00:00 heroku[web.1]: Process exited with status 1 
2016-06-13T03:56:15.460115+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=keela.herokuapp.com request_id=eb256901-593c-43a0-be3e-e4347daecf40 fwd="206.108.215.194" dyno= connect= service= status=503 bytes= 

这些是Heroku的日志从终端:

2016-06-13T03:56:05.528129+00:00 heroku[web.1]: State changed from crashed to starting 
2016-06-13T03:56:06.563040+00:00 heroku[web.1]: Starting process with command `npm start` 
2016-06-13T03:56:08.477065+00:00 app[web.1]: 
2016-06-13T03:56:08.477075+00:00 app[web.1]: > [email protected] start /app 
2016-06-13T03:56:08.477108+00:00 app[web.1]: > meteor run 
2016-06-13T03:56:08.477109+00:00 app[web.1]: 
2016-06-13T03:56:08.480791+00:00 app[web.1]: sh: 1: meteor: not found 
2016-06-13T03:56:08.484354+00:00 app[web.1]: 
2016-06-13T03:56:08.488227+00:00 app[web.1]: npm ERR! Linux 3.13.0-85-generic 
2016-06-13T03:56:08.488707+00:00 app[web.1]: npm ERR! argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "start" 
2016-06-13T03:56:08.488728+00:00 app[web.1]: npm ERR! node v0.10.45 
2016-06-13T03:56:08.488892+00:00 app[web.1]: npm ERR! npm v2.15.1 
2016-06-13T03:56:08.489008+00:00 app[web.1]: npm ERR! file sh 
2016-06-13T03:56:08.489134+00:00 app[web.1]: npm ERR! code ELIFECYCLE 
2016-06-13T03:56:08.489268+00:00 app[web.1]: npm ERR! errno ENOENT 
2016-06-13T03:56:08.489383+00:00 app[web.1]: npm ERR! syscall spawn 
2016-06-13T03:56:08.489490+00:00 app[web.1]: npm ERR! [email protected] start: `meteor run` 
2016-06-13T03:56:08.489846+00:00 app[web.1]: npm ERR! spawn ENOENT 
2016-06-13T03:56:08.489945+00:00 app[web.1]: npm ERR! 
2016-06-13T03:56:08.490043+00:00 app[web.1]: npm ERR! Failed at the [email protected] start script 'meteor run'. 
2016-06-13T03:56:08.490119+00:00 app[web.1]: npm ERR! This is most likely a problem with the keela package, 
2016-06-13T03:56:08.490220+00:00 app[web.1]: npm ERR! not with npm itself. 
2016-06-13T03:56:08.490296+00:00 app[web.1]: npm ERR! Tell the author that this fails on your system: 
2016-06-13T03:56:08.490540+00:00 app[web.1]: npm ERR!  meteor run 
2016-06-13T03:56:08.490622+00:00 app[web.1]: npm ERR! You can get information on how to open an issue for this project with: 
2016-06-13T03:56:08.490726+00:00 app[web.1]: npm ERR!  npm bugs keela 
2016-06-13T03:56:08.490821+00:00 app[web.1]: npm ERR! Or if that isn't available, you can get their info via: 
2016-06-13T03:56:08.490919+00:00 app[web.1]: npm ERR! 
2016-06-13T03:56:08.490999+00:00 app[web.1]: npm ERR!  npm owner ls keela 
2016-06-13T03:56:08.491174+00:00 app[web.1]: npm ERR! There is likely additional logging output above. 
2016-06-13T03:56:08.493551+00:00 app[web.1]: 
2016-06-13T03:56:08.493856+00:00 app[web.1]: npm ERR! Please include the following file with any support request: 
2016-06-13T03:56:08.494156+00:00 app[web.1]: npm ERR!  /app/npm-debug.log 
2016-06-13T03:56:09.185720+00:00 heroku[web.1]: State changed from starting to crashed 
2016-06-13T03:56:09.186797+00:00 heroku[web.1]: State changed from crashed to starting 
2016-06-13T03:56:09.168263+00:00 heroku[web.1]: Process exited with status 1 
2016-06-13T03:56:10.415088+00:00 heroku[web.1]: Starting process with command `npm start` 
+0

这可能是因为Node.js版本不兼容,流星仍然使用0.10.x,而您使用5.x.解决这个问题的好方法是使用Docker。退房https://github.com/meteorhacks/meteord – aedm

+0

你使用哪个build pack? – Tdm

+0

我使用的构建包是这一个:https://github.com/jordansissel/heroku-buildpack-meteor 谢谢我会看看码头....有没有另一种方式? – powerup7

回答

0

Buildpacks或流星heroku上仍然是非常不稳定的。 我不得不通过buildpack网站的评论来使用buildpack的分支。

流星仍然使用0.10.41+版本的节点也是正确的。 我通过使用nvm将我的节点版本更改为0.10.45来改变这一点。

而且使用的2.1.1

一个NPM版本请务必配置的package.json这些设置的!

Heroku错误日志非常模糊,让我头疼。