最近(2019 年 4 月 24 日)我在我的办公室 ubuntu 16.04 台式计算机上安装了 MUP,并将 Meteor 应用程序部署到云服务器上,效果很好!爱它。
但我家里有一台 MacBook;现在我只能在办公室电脑上做 mup reconfig/mup stop /start,我怎么能在我的 Macbook 上做呢?
两台计算机都有应用程序仓库(包括 .deploy 和 mup.js..)。我试图搜索 MUP 文档,但没有运气。谢谢!
添加了 mup.js
module.exports = {
servers: {
one: {
// TODO: set host address, username, and authentication method
host: '1.1.1.1',
username: 'ubuntu',
pem: '/home/rjiao/.ssh/AlltechTC00'
// password: 'Server_password'
// or neither for authenticate from ssh-agent
}
},
app: {
// TODO: change app name and path
name: 'FAMaster',
path: '../',
servers: {
one: {},
},
buildOptions: {
serverOnly: true,
},
env: {
// TODO: Change to your app's url
// If you are using ssl, it needs to start with https://
ROOT_URL: 'http://1.1.1.1',
MONGO_URL: 'mongodb://mongodb/meteor',
MONGO_OPLOG_URL: 'mongodb://mongodb/local',
},
docker: {
// change to 'abernix/meteord:base' if your app is using Meteor 1.4 - 1.5
image: 'abernix/meteord:node-8.4.0-base',
},
// Show progress bar while uploading bundle to server
// You might need to disable it on CI servers
enableUploadProgressBar: true
},
mongo: {
version: '4.0.6',
servers: {
one: {}
}
},
// (Optional)
// Use the proxy to setup ssl or to route requests to the correct
// app when there are several apps
// proxy: {
// domains: 'mywebsite.com,www.mywebsite.com',
// ssl: {
// // Enable Let's Encrypt
// letsEncryptEmail: 'email@domain.com'
// }
// }
};