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