1

更新到 Meteor 0.6.5 后,此https://github.com/jordansissel/heroku-buildpack-meteor不再起作用。Heroku 应用程序的日志:

2013-08-15T12:06:29+00:00 heroku[slug-compiler]: Slug compilation started
2013-08-15T12:06:43.647196+00:00 heroku[api]: Deploy 213bfc9 by artpolikarpov@getwear.com
2013-08-15T12:06:43.671450+00:00 heroku[api]: Release v350 created by artpolikarpov@getwear.com
2013-08-15T12:06:43.777150+00:00 heroku[web.1]: State changed from down to starting
2013-08-15T12:06:44+00:00 heroku[slug-compiler]: Slug compilation finished
2013-08-15T12:06:46.259053+00:00 heroku[web.1]: Starting process with command `PATH=.meteor/local/usr/bin:.meteor/local/usr/lib/meteor/bin:bin:/usr/local/bin:/usr/bin:/bin NODE_PATH=.meteor/local/usr/lib/meteor/lib/node_modules MONGO_URL=mongodb://heroku:c2130dda19da2b5a60ffae67ce4134a5@dharma.mongohq.com:10026/app14902610 .meteor/local/usr/lib/meteor/bin/node .meteor/local/build/main.js`
2013-08-15T12:06:46.926998+00:00 app[web.1]: module.js:340
2013-08-15T12:06:46.930406+00:00 app[web.1]:     at Function.Module._resolveFilename (module.js:338:15)
2013-08-15T12:06:46.926865+00:00 app[web.1]: 
2013-08-15T12:06:46.927270+00:00 app[web.1]:     throw err;
2013-08-15T12:06:46.927270+00:00 app[web.1]:           ^
2013-08-15T12:06:46.930406+00:00 app[web.1]: Error: Cannot find module '/app/.meteor/local/build/main.js'
2013-08-15T12:06:46.930406+00:00 app[web.1]:     at Function.Module._load (module.js:280:25)
2013-08-15T12:06:46.930406+00:00 app[web.1]:     at process.startup.processNextTick.process._tickCallback (node.js:244:9)
2013-08-15T12:06:46.930406+00:00 app[web.1]:     at Module.runMain (module.js:492:10)
2013-08-15T12:06:48.127332+00:00 heroku[web.1]: Process exited with status 1

任何人都可以帮忙吗?

4

1 回答 1

4

好的。转移到另一个 buildpack 帮助了我。现在我正在使用:https ://github.com/oortcloud/heroku-buildpack-meteorite 。


要移动,请将新 URL 设置为 BUILDPACK_URL 变量:

heroku config:set BUILDPACK_URL=https://github.com/oortcloud/heroku-buildpack-meteorite.git


为避免该Meteor requires Node v0.8.24 or later错误,package.json请在您的流星项目的根目录中定义如下内容:

{
  "name": "Whatever",
  "version": "0.0.1",
  "engines": {
    "node": "0.8.24"
  }
}
于 2013-08-17T01:29:25.180 回答