将Meteor应用程序部署到Galaxy时出错

时间:2016-09-06 12:01:08

标签: meteor meteor-blaze

我是Meteor的新手,请原谅我,如果这太简单了,我在尝试部署我的应用时会不断收到以下错误。

我拼命地搜索互联网,希望找到答案,但同样的错误仍然存​​在。

> 95gp
> 2016-09-06 06:44:07-05:00Application process starting, version: 1 on apprunner (embedded)
> 95gp
> 2016-09-06 06:44:09-05:00/app/bundle/programs/server/boot.js:333
> 95gp
> 2016-09-06 06:44:09-05:00}).run();
> 95gp
> 2016-09-06 06:44:09-05:00 ^
> 95gp
> 2016-09-06 06:44:09-05:00
> 95gp
> 2016-09-06 06:44:09-05:00Error: $ROOTURL, if specified, must be an URL_
> 95gp
> 2016-09-06 06:44:09-05:00 at Error (native)
> 95gp
> 2016-09-06 06:44:09-05:00 at packages/meteor/urlserver.js:8:1_
> 95gp
> 2016-09-06 06:44:09-05:00 at packages/meteor/urlserver.js:19:1_
> 95gp
> 2016-09-06 06:44:09-05:00 at /app/bundle/programs/server/packages/meteor.js:1365:3
> 95gp
> 2016-09-06 06:44:09-05:00 at /app/bundle/programs/server/boot.js:292:10
> 95gp
> 2016-09-06 06:44:09-05:00 at Array.forEach (native)
> 95gp
> 2016-09-06 06:44:09-05:00 at Function..each..forEach (/app/bundle/programs/server/nodemodules/underscore/underscore.js:79:11)_
> 95gp
> 2016-09-06 06:44:09-05:00 at /app/bundle/programs/server/boot.js:128:5
> 95gp
> 2016-09-06 06:44:09-05:00Application exited with code: 1 signal: null
> 95gp
> 2016-09-06 06:44:09-05:00Application process closed with code: 1 signal: null
> 95gp
> 2016-09-06 06:44:19-05:00The container has crashed. A new container will be started to replace it.

感谢所有帮助,

干杯

1 个答案:

答案 0 :(得分:0)

根据您共享的日志,确定$ ROOTURL未定义。在流星项目的根目录中创建一个settings.json文件。

应包含如下结构:

{
    "galaxy.meteor.com": {
    "env": {
        "ROOT_URL": "http://yourappname.meteorapp.com/",
        "DEPLOY_HOSTNAME":"galaxy.meteor.com",
        "MONGO_URL": "mongodb://mongourl"
     }
  }
}

然后,您可以查看galaxy网站上的部署说明。

http://galaxy-guide.meteor.com/deploy-guide.html