我正在尝试在AWS
服务器上部署流星反应项目。我能够成功运行mup
deploy命令。
但是我无法通过URL或ip:port
使用nigher来访问它。
我正在其他meteor
个React项目上成功运行。
meteor version : 1.7.0.5
node version : 8.10.0
meteor node version : 8.11.4
npm version : 6.11.0
mup.js:
module.exports = {
servers: {
one: {
// TODO: set host address, username, and authentication method
host: 'xx.xxx.xxx.xx',
username:'root',
// pem: './path/to/pem'
password:'xxxxxxxxxxxxxxxxxxxxxxxxxx'
// or neither for authenticate from ssh-agent
}
},
app: {
// TODO: change app name and path
name: 'cahorSTMS',
path: '/var/www/meteor/cahorSTMS',
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://url.subdomain.com',
MONGO_URL: 'mongodb://mongodb/dbname',
// MONGO_OPLOG_URL: 'mongodb://mongodb/local',
PORT:3051
},
docker: {
// change to 'abernix/meteord:base' if your app is using Meteor 1.4 - 1.5
image: 'abernix/meteord:node-8.4.0-base',
args:[
'--link=mongodb:mongodb'
]
},
// Show progress bar while uploading bundle to server
// You might need to disable it on CI servers
deployCheckWaitTime: 60,
enableUploadProgressBar: true
},
// mongo: {
// version: '3.6.3',
// 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',`enter code here`
// ssl: {
// // Enable Let's Encrypt
// letsEncryptEmail: 'email@domain.com'
// }
// }
};
请帮助。
谢谢。