2016-09-12 93 views
0

我正在使用Kadira的Meteor-Up(Mup)部署我的流星應用程序。我已經從Mupx更新了Mup,這可能會導致問題。使用kadirahq Mup部署時出錯

下面是配置文件

module.exports = { 
    servers: { 
     one: { /* ssh auth details here */ } 
    } 
    }, 

    meteor: { 
    name: 'soundcraft', 
    path: '.', 
    docker: { 
     image: 'kadirahq/meteord', 
    }, 
    servers: { 
     one: {} 
    }, 
    buildOptions: { 
     serverOnly: true, 
     debug: true, 
     cleanAfterBuild: true, 
    }, 
    "env": { 
     "ROOT_URL": "http://139.232.218.147", 
     "MONGO_URL": "mongodb://localhost:27017/soundcraft" 
    }, 

    deployCheckWaitTime: 60 
    }, 

    mongo: { 
    oplog: true, 
    port: 27017, 
    servers: { 
     one: {}, 
    }, 
    }, 
}; 

mup setup工作正常,但是當我使用DEBUG=* mup deploy命令產生以下錯誤:

mup:module:default exec => mup deploy +0ms 
    mup:module:meteor exec => mup meteor deploy +2ms 
    mup:module:meteor exec => mup meteor push +2ms 
Building App Bundle Locally 

Started TaskList: Pushing Meteor 
[139.232.218.147] - Pushing Meteor App Bundle to The Server 
    nodemiral:sess:139.162.208.147 copy file - src: /tmp/62ab2c11-1477-4248-a409-392ca66940f0/bundle.tar.gz, dest: /opt/soundcraft/tmp/bundle.tar.gz, vars: undefined +0ms 
[139.232.218.147] - Pushing Meteor App Bundle to The Server: SUCCESS 
[139.232.218.147] - Pushing the Startup Script 
    nodemiral:sess:139.232.218.147 copy file - src: /Users/imac/.nvm/versions/node/v4.5.0/lib/node_modules/mup/lib/modules/meteor/assets/templates/start.sh, dest: /opt/soundcraft/config/start.sh, vars: {"appName":"soundcraft","useLocalMongo":1,"port":80,"logConfig":{"opts":{"max-size":"100m","max-file":10}},"docker":{"image":"kadirahq/meteord"}} +7s 
[139.232.218.147] - Pushing the Startup Script: SUCCESS 
    mup:module:meteor exec => mup meteor envconfig +3m 

Started TaskList: Configuring Meteor Environment Variables 
[139.232.218.147] - Sending Environment Variables 
    nodemiral:sess:139.232.218.147 copy file - src: /Users/imac/.nvm/versions/node/v4.5.0/lib/node_modules/mup/lib/modules/meteor/assets/templates/env.list, dest: /opt/soundcraft/config/env.list, vars: {"env":{"ROOT_URL":"http://139.232.218.147","MONGO_URL":"mongodb://localhost:27017/soundcraft","METEOR_SETTINGS":"{\"public\":{}}"},"appName":"soundcraft"} +433ms 
[139.232.218.147] - Sending Environment Variables: SUCCESS 
    mup:module:meteor exec => mup meteor start +456ms 

Started TaskList: Start Meteor 
[139.232.218.147] - Start Meteor 
[139.232.218.147] x Start Meteor: FAILED 

    -----------------------------------STDERR----------------------------------- 
    Error response from daemon: No such container: soundcraft-frontend 
    docker: Error response from daemon: driver failed programming external connectivity on endpoint soundcraft (22e4ffc6ecf94ffc1d35ebaf0e3f3364c92e3079439ca2e0138a5951b068f481): Error starting userland proxy: listen tcp 0.0.0.0:80: bind: address already in use. 
    -----------------------------------STDOUT----------------------------------- 
    soundcraft 
    Using default tag: latest 
    latest: Pulling from kadirahq/meteord 
    Digest: sha256:7ec54d5fafc11acbcc82f3e555fddce8e4742ddeda05a64997f2a10e3c04137e 
    Status: Image is up to date for kadirahq/meteord:latest 
    6e357baf5700be59d64973ff9653ca2eb80eaa2e52145411ce6d5d42d0a4d109 
    ---------------------------------------------------------------------------- 

做一個小的搜索後,我發現了一些關於讓碼頭使用不同的端口,所以嘗試在配置中添加一個額外的行來這樣做,但我不確定具體如何。

回答

0

可以在ENV添加端口象下面這樣:

ENV:{ 端口:8010, ROOT_URL: 「http://139.232.218.147」, MONGO_URL: 「MongoDB的://本地主機:27017/SOUNDCRAFT」 },

乾杯, Kosona

0

我找到了原因,我想與大家分享。

With mup setup確保在你的mup.js中,每個塊中的最後一行以空格結束,而不是空格。如果最後一個塊結束,您將看到進程停滯並出現超時錯誤。 例如: 以下是正確。 buildOptions:{ serverOnly:真, 調試:真, cleanAfterBuild:真 },

的下面將產生錯誤 buildOptions:{ serverOnly:真, 調試:真, cleanAfterBuild:真, },

隨着MUP部署確保在您的settings.json與空間,而不是每塊結束的最後一行。如果最後一個塊結束,您將看到進程停滯並出現超時錯誤。 例如: 以下是正確。 「的OAuth」:{

「推特」:{

「consumerKey」: 「XXX」,

「祕密」: 「XXXX」, 「access_token_key」: 「XXX」, 「 access_token_secret「: 」XXX「

},

」臉譜「:{

」APPID「: 」XXX「,

「祕密」: 「XXXX」

} }

下面會產生錯誤超時 「的OAuth」:{

「推特」:{

「 consumerKey「:」xxx「,

」secret「:」xxxx「, 」access_ token_key「: 」XXX「, 」access_token_secret「: 」XXX「

},

」臉譜「:{

」的appid「: 」XXX「,

」祕密「: 「XXXX」

}, }

希望將幫助!

乾杯, 科索納