我正在尝试将Meteor部署到远程Heroku服务器上。我正在学习这教程,但是会出现错误。如有任何建议,敬请见谅。
当我做git push heroku master的时候

但是,服务器记录:
2016-09-11T18:03:14.757898+00:00 heroku[slug-compiler]: Slug compilation started
2016-09-11T18:03:14.757903+00:00 heroku[slug-compiler]: Slug compilation finished
2016-09-11T18:03:41.646676+00:00 heroku[web.1]: Starting process with command `node build/bundle/main.js`
2016-09-11T18:03:44.098961+00:00 app[web.1]:
2016-09-11T18:03:44.099230+00:00 app[web.1]: assert.js:93
2016-09-11T18:03:44.099458+00:00 app[web.1]: throw new assert.AssertionError({
2016-09-11T18:03:44.101174+00:00 app[web.1]: AssertionError: "undefined" === "function"
2016-09-11T18:03:44.101176+00:00 app[web.1]: at Object.<anonymous> (/app/build/bundle/programs/server/mini-files.js:108:24)
2016-09-11T18:03:44.101177+00:00 app[web.1]: at Module._compile (module.js:456:26)
2016-09-11T18:03:44.101178+00:00 app[web.1]: at Module.load (module.js:356:32)
2016-09-11T18:03:44.101179+00:00 app[web.1]: at Function.Module._load (module.js:312:12)
2016-09-11T18:03:44.101180+00:00 app[web.1]: at Module.require (module.js:364:17)
2016-09-11T18:03:44.173228+00:00 heroku[web.1]: Process exited with status 8
2016-09-11T18:03:44.193642+00:00 heroku[web.1]: State changed from starting to crashed
2016-09-11T18:03:44.194826+00:00 heroku[web.1]: State changed from crashed to starting
2016-09-11T18:04:02.230596+00:00 heroku[web.1]: Starting process with command `node build/bundle/main.js`
2016-09-11T18:04:04.559800+00:00 heroku[web.1]: Process exited with status 8
2016-09-11T18:04:04.471328+00:00 app[web.1]:
2016-09-11T18:04:04.471593+00:00 app[web.1]: assert.js:93
2016-09-11T18:04:04.473451+00:00 app[web.1]: at wrapPathFunction (/app/build/bundle/programs/server/mini-files.js:77:10)
2016-09-11T18:04:04.473452+00:00 app[web.1]: at Object.<anonymous> (/app/build/bundle/programs/server/mini-files.js:108:24)
2016-09-11T18:04:04.473453+00:00 app[web.1]: at Module._compile (module.js:456:26)
2016-09-11T18:04:04.473454+00:00 app[web.1]: at Function.Module._load (module.js:312:12)
2016-09-11T18:04:04.473455+00:00 app[web.1]: at Module.require (module.js:364:17)
2016-09-11T18:04:04.581922+00:00 heroku[web.1]: State changed from starting to crashed更新
我现在尝试使用香草流星应用程序的本教程:
meteor create meteor-thewhozoo但是,当我尝试将其push到Heroku服务器时:

我读过,添加Mongo数据库可以消除对信用卡信息的要求,但它对我没有用。
heroku config:set MONGO_URL=mongodb://<dbname>:<password>@ds021026.mlab.com:21026/mongo-thewhozoo我想避免为开发环境/概念的证明提供我的卡的细节。
更新
卡的细节可以避免。阅读这,(请参见设置构建返回)。
发布于 2016-09-11 18:23:55
最近,我第一次尝试将我的流星应用部署到Heroku。我遵循了这个教程,它没有问题。
https://medium.com/@gautham.gg/deploy-a-meteor-1-3-application-to-heroku-cda1f68ca20a#.wceub1sm3
希望这能有所帮助。
发布于 2017-12-12 00:53:28
您不需要为数据库使用mlab选项来添加卡的详细信息&这将为您提供500 is的段塞大小(对于开发环境来说已经足够了)。
您可以使用以下命令从heroku cli中选择mlab沙箱db。
$ heroku addons:create mongolab:sandboxhttps://stackoverflow.com/questions/39439146
复制相似问题