Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Meteor Heroku部署上的流星_Meteor_Heroku_Npm - Fatal编程技术网

Meteor Heroku部署上的流星

Meteor Heroku部署上的流星,meteor,heroku,npm,Meteor,Heroku,Npm,我正在尝试将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

我正在尝试将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
但是当我尝试将它推送到Heroku服务器时:

我曾读到,添加Mongo数据库消除了对信用卡信息的请求,但这对我来说不起作用

heroku config:set MONGO_URL=mongodb://<dbname>:<password>@ds021026.mlab.com:21026/mongo-thewhozoo
heroku config:set MONGO_URL=mongodb://:@ds021026.mlab.com:21026/MONGO thewhozoo 我希望避免提供开发环境/概念验证的卡详细信息

更新


可以避免使用卡片详细信息。阅读,(请参阅设置版本备份)。

前几天我第一次尝试将meteor应用程序部署到Heroku。我遵循这个教程,它没有问题


希望这有帮助。

您不需要通过使用数据库的mlab沙盒选项来添加卡的详细信息&这将为您提供500MB的slug大小(对于开发环境来说,这已经足够了)

您可以使用以下命令从heroku cli中拾取mlab沙盒db

$ heroku addons:create mongolab:sandbox

我在Heroku上创建了另一个Meteor应用程序,但不知道如何访问它,或者测试它是否正在运行。如果有人可以建议,请看相同的错误或不同的错误?只是为了检查你是否添加了meteor构建包?我得到以下错误:“推送拒绝给meteor thewhozoo”。我将对上述问题进行更新。谢谢
$ heroku addons:create mongolab:sandbox