通过将我的 Meteor 应用程序部署到 Digital Ocean Ubuntu 16.04,我遇到了一个问题。我的流星版本是 METEOR@1.5.2.2
mup 设置工作完美。 mup deploy抛出错误。我用谷歌搜索了这个错误,但我找不到解决方案
Started TaskList: Pushing Meteor App
- Pushing Meteor App Bundle to the Server
- Pushing Meteor App Bundle to the Server: SUCCESS
- Prepare Bundle
x Prepare Bundle: FAILED
-----------------------------------STDERR-----------------------------------
Error response from daemon: No such container: CoachingDB
The command '/bin/sh -c cd /built_app/programs/server && npm install --unsafe-perm' returned a non-zero code: 137
Error response from daemon: No such container: CoachingDB
Error: failed to start containers: CoachingDB
-----------------------------------STDOUT-----------------------------------
de-sass@4.5.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2017-11-29T08_58_50_441Z-debug.log
npm WARN meteor-dev-bundle@0.0.0 No description
npm WARN meteor-dev-bundle@0.0.0 No repository field.
npm WARN meteor-dev-bundle@0.0.0 No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 137
npm ERR! meteor-dev-bundle@0.0.0 install: `node npm-rebuild.js`
npm ERR! Exit status 137
npm ERR!
npm ERR! Failed at the meteor-dev-bundle@0.0.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2017-11-29T08_58_50_609Z-debug.log
----------------------------------------------------------------------------
在这里你可以看到我的 mup.js 配置。我希望我配置正确
module.exports = {
servers: {
one: {
// TODO: set host address, username, and authentication method
host: 'xxx.xxx.xxx.xxx',
username: 'root',
// pem: './path/to/pem'
password: 'xxx'
// or neither for authenticate from ssh-agent
}
},
app: {
name: 'CoachingDB',
path: '../',
servers: {
one: {},
},
buildOptions: {
serverOnly: true,
},
env: {
ROOT_URL: 'http://xxx.xxx.xxx.xxx/',
MONGO_URL: 'mongodb://localhost/meteor',
},
// ssl: { // (optional)
// // Enables let's encrypt (optional)
// autogenerate: {
// email: 'email.address@domain.com',
// // comma separated list of domains
// domains: 'website.com,www.website.com'
// }
// },
docker: {
// change to 'abernix/meteord:base' if your app is using Meteor 1.4 - 1.5
image: 'abernix/meteord:base',
},
enableUploadProgressBar: true,
deployCheckWaitTime: 180,
},
mongo: {
version: '3.4.1',
port: 27017,
oplog: true,
servers: {
one: {}
}
}
};
有谁知道如何解决这个问题?