Heroku错误与Meteor 1.4.1.1

时间:2016-09-28 16:25:19

标签: node.js meteor heroku npm

我正在关注此guide以部署我的应用。我的推送没有错误,但是当我在我的heroku仪表板上打开应用程序时,我遇到了一个应用程序错误页面。

这是日志显示的内容:

2016-09-28T16:05:56.493404+00:00 heroku[web.1]: Starting process with command `npm start`
2016-09-28T16:05:58.915131+00:00 app[web.1]: 
2016-09-28T16:05:58.915154+00:00 app[web.1]: > TTR@ start /app
2016-09-28T16:05:58.915155+00:00 app[web.1]: > meteor run
2016-09-28T16:05:58.915155+00:00 app[web.1]: 
2016-09-28T16:05:58.920402+00:00 app[web.1]: sh: 1: meteor: not found
2016-09-28T16:05:58.928190+00:00 app[web.1]: 
2016-09-28T16:05:58.938161+00:00 app[web.1]: npm ERR! Linux 3.13.0-93-generic
2016-09-28T16:05:58.938683+00:00 app[web.1]: npm ERR! argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "start"
2016-09-28T16:05:58.939001+00:00 app[web.1]: npm ERR! node v5.11.1
2016-09-28T16:05:58.939801+00:00 app[web.1]: npm ERR! npm  v3.8.6
2016-09-28T16:05:58.940297+00:00 app[web.1]: npm ERR! file sh
2016-09-28T16:05:58.940554+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2016-09-28T16:05:58.940702+00:00 app[web.1]: npm ERR! errno ENOENT
2016-09-28T16:05:58.940855+00:00 app[web.1]: npm ERR! syscall spawn
2016-09-28T16:05:58.941055+00:00 app[web.1]: npm ERR! TTR@ start: `meteor run`
2016-09-28T16:05:58.941269+00:00 app[web.1]: npm ERR! spawn ENOENT
2016-09-28T16:05:58.941504+00:00 app[web.1]: npm ERR! 
2016-09-28T16:05:58.941722+00:00 app[web.1]: npm ERR! Failed at the TTR@ start script 'meteor run'.
2016-09-28T16:05:58.941941+00:00 app[web.1]: npm ERR! Make sure you have the latest version of node.js and npm installed.
2016-09-28T16:05:58.942090+00:00 app[web.1]: npm ERR! If you do, this is most likely a problem with the TTR package,
2016-09-28T16:05:58.942204+00:00 app[web.1]: npm ERR! not with npm itself.
2016-09-28T16:05:58.942309+00:00 app[web.1]: npm ERR! Tell the author that this fails on your system:
2016-09-28T16:05:58.942414+00:00 app[web.1]: npm ERR!     meteor run
2016-09-28T16:05:58.942519+00:00 app[web.1]: npm ERR! You can get information on how to open an issue for this project with:
2016-09-28T16:05:58.942625+00:00 app[web.1]: npm ERR!     npm bugs TTR
2016-09-28T16:05:58.942728+00:00 app[web.1]: npm ERR! Or if that isn't available, you can get their info via:
2016-09-28T16:05:58.942985+00:00 app[web.1]: npm ERR!     npm owner ls TTR
2016-09-28T16:05:58.943094+00:00 app[web.1]: npm ERR! There is likely additional logging output above.
2016-09-28T16:05:58.946745+00:00 app[web.1]: 
2016-09-28T16:05:58.947021+00:00 app[web.1]: npm ERR! Please include the following file with any support request:
2016-09-28T16:05:58.947129+00:00 app[web.1]: npm ERR!     /app/npm-debug.log
2016-09-28T16:05:59.015852+00:00 heroku[web.1]: State changed from starting to crashed
2016-09-28T16:05:59.001860+00:00 heroku[web.1]: Process exited with status 1

我已尝试过https://github.com/AdmitHub/meteor-buildpack-horse.githttps://github.com/jordansissel/heroku-buildpack-meteor.git构建包。我有什么想法可以让它运行起来吗?

3 个答案:

答案 0 :(得分:0)

希望我会有所帮助。

  

这是我以前做过的指南,而且每件事都对我有好处:

     

https://medium.com/@leonardykris/how-to-run-a-meteor-js-application-on-heroku-in-10-steps-7aceb12de234

使用此buildpack(https://github.com/dassiorleando/heroku-buildpack-meteor),我从(https://github.com/jordansissel/heroku-buildpack-meteor)分叉并编辑节点引擎版本,以允许我部署使用新版本的meteor(1.4.XX)制作的应用程序。

如果它有用,只需将其标记为最佳答案,如果没有给我们提供一个github存储库,其中包含您要在heroku上部署的应用程序的简单版本,那么我们将尝试做到并更好地弄清楚有什么不对。

答案 1 :(得分:0)

要让Herteor在Heroku上部署,我必须使用https://github.com/AdmitHub/meteor-buildpack-horse.git#beta作为我的buildpack并将meteor更新为1.4.2.3

答案 2 :(得分:0)

我有这个问题,我不得不编辑"名称" package.json匹配heroku上的应用程序名称。这就是为什么建议您在运行" meteor create"时使用相同名称的应用程序。当您通过Heroku(命令行或Heroku控制台)创建应用程序时