2016-09-06 75 views
0

我是Meteor新手,如果這太簡單了,我會在嘗試部署我的應用時不斷收到以下錯誤。將流星應用部署到Galaxy時出錯

我拼命搜尋互聯網,希望找到答案,但同樣的錯誤仍然出現。

> 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. 

所有幫助表示讚賞,

乾杯

+0

您還可以共享您編寫的部署命令和設置文件 –

回答

0

好根據您共享沒有定義$使用rootUrl日誌。在流星項目的根目錄下創建一個settings.json文件。

應包含結構,如:

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

然後,你可以看看那些星系網站上的部署說明。

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