流星在Heroku部署 [英] Meteor on Heroku Deployment
问题描述
然而,服务器日志:
2016-09-11T18:03:14.757898 + 00:00 heroku [slug-compiler]:Slug编译开始
2016-09-11T18:03 :14.757903 + 00:00 heroku [slug-compiler]:Slug编译完成
2016-09-11T18:03:41.646676 + 00:00 heroku [web.1]:用命令`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。 < ANO nymous> (/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]:在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]:在Module.require(module.js:364:17)
2016-09-11T18:03:44.173228 + 00:00 heroku [web.1]:进程退出状态8
2016-09-11T18:03:44.193642 + 00:00 heroku [web.1]:状态从开始变为崩溃
2016-09-11T18:03:44.194826 + 00:00 heroku [ web.1]:状态从崩溃状态变为开始
2016-09-11T18:04:02.230596 + 00:00 heroku [web.1]:使用命令`node build / bundle / main.js`启动进程
2016-09-11T18:04:04.559800 + 00:00 heroku [web.1]:进程退出状态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]:在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]:从开始状态变为崩溃状态
UPDATE < 我现在试试 我读过添加Mongo数据库消除了信用卡信息的请求,但它对我无效。 p> 我想避免为开发环境/概念证明提供我的卡详细信息。 / b> 更新 我最近试图将我的流星应用程序部署到Heroku这是第一次。我遵循本教程,它没有任何问题。 https://medium.com/@gautham.gg/deploy-a-meteor-1-3-application-to-heroku-cda1f68ca20a #.wceub1sm3 希望这有助于您。 I am trying to deploy Meteor to a remote Heroku server. I am following this tutorial, but get errors. Any advise would be appreciated please. When I do the However, the server logs: UPDATE I now try this tutorial with a vanilla meteor app: But when I try I have read that adding the Mongo Database eliminates the request for Credit Card info, but it didn't work for me. I want to avoid giving my card details for a development environment/proof of concept. UPDATE Card details can be avoided. Read this, (see Setting up the build back). I recently was trying to deploy my meteor app to Heroku for the first time the other day. I followed this tutorial and it worked no problem. https://medium.com/@gautham.gg/deploy-a-meteor-1-3-application-to-heroku-cda1f68ca20a#.wceub1sm3 Hope this helps. 这篇关于流星在Heroku部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
heroku config:set MONGO_URL = mongodb://< dbname>:< password> @ ds021026.mlab.com:21026 / mongo-thewhozoo
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
it to the Heroku server:heroku config:set MONGO_URL=mongodb://<dbname>:<password>@ds021026.mlab.com:21026/mongo-thewhozoo