将应用程序部署到 heroku 后,我的应用程序无法启动。我认为这可能与构建包和最新版本的 meteor 0.9.x 有关?
我应该从哪里开始调试?
2014-09-02T05:02:58.848513+00:00 heroku[web.1]: State changed from crashed to starting
2014-09-02T05:03:05.407436+00:00 heroku[web.1]: Starting process with command `.meteor/heroku_build/bin/node .meteor/heroku_build/app/main.js`
2014-09-02T05:03:06.578829+00:00 app[web.1]: module.js:340
2014-09-02T05:03:06.579092+00:00 app[web.1]: throw err;
2014-09-02T05:03:06.586422+00:00 app[web.1]: at Function.Module._load (module.js:280:25)
2014-09-02T05:03:06.578419+00:00 app[web.1]:
2014-09-02T05:03:06.586423+00:00 app[web.1]: at Module.require (module.js:364:17)
2014-09-02T05:03:06.579105+00:00 app[web.1]: ^
2014-09-02T05:03:06.586414+00:00 app[web.1]: Error: Cannot find module 'fibers'
2014-09-02T05:03:06.586426+00:00 app[web.1]: at require (module.js:380:17)
2014-09-02T05:03:06.586420+00:00 app[web.1]: at Function.Module._resolveFilename (module.js:338:15)
2014-09-02T05:03:06.586428+00:00 app[web.1]: at Object.<anonymous> (/app/.meteor/heroku_build/app/programs/server/boot.js:1:75)
2014-09-02T05:03:06.586429+00:00 app[web.1]: at Module._compile (module.js:456:26)
2014-09-02T05:03:06.586431+00:00 app[web.1]: at Object.Module._extensions..js (module.js:474:10)
2014-09-02T05:03:06.586432+00:00 app[web.1]: at Module.load (module.js:356:32)
2014-09-02T05:03:06.586434+00:00 app[web.1]: at Function.Module._load (module.js:312:12)
2014-09-02T05:03:06.586436+00:00 app[web.1]: at Module.require (module.js:364:17)
2014-09-02T05:03:07.681468+00:00 heroku[web.1]: State changed from starting to crashed
2014-09-02T05:03:07.680466+00:00 heroku[web.1]: Process exited with status 8
最佳答案
我没有足够的积分来对您的帖子发表评论,但这将解决您的问题,即使它没有回答您的问题。这个问题已经一个多月没有得到解答,为什么不呢?
你是对的。许多流行的 buildpacks 在 meteor 0.9.x 上有问题;我不是一个足够好的程序员来理解为什么或具体问题是什么。我也不确定为什么下面链接的 buildpack 有效,但它确实有效。
https://github.com/djhi/heroku-buildpack-meteorite.git
希望这能帮助其他遭受同样问题困扰的 meteor 开发者,即使这篇文章没有回答这个问题。
编辑 - 根据@jww 的评论更新帖子;我的帖子仍然没有提供答案,但它确实提供了解决方案。
编辑 2 - 这个 buildpack 不再为我工作。请参阅下面的评论。以下再次为我工作: https://github.com/AdmitHub/meteor-buildpack-horse
关于node.js - 部署后 Meteor Heroku App 崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25622156/