Customized Deployment of Meteor App
This is a pain! ... So, hopefully these notes will help!
Mup configuration:
Keypoints to take note (follow EXACTLY):
Server config
host: '127.0.0.1',
username: 'ghost',
pem: '~/.ssh/id_rsa'
Bind to host mongodb
docker: {
// change to 'kadirahq/meteord' if your app is using Meteor 1.3 or older
image: 'abernix/spaceglue:node-8-onbuild',
imagePort: 2614,
args:[ // lets you add/overwrite any parameter on the docker run command (optional)
'--network="host"', // linking example
],
// lets you bind the docker container to a
// specific network interface (optional)
// bind: '127.0.0.1',
},
IMPORTANT: Use correct image: image: 'abernix/spaceglue:node-8-onbuild',
UPGRADE meteor as mentioned here using: meteor update --release 1.8.1-beta.8
ENSURE MONGO_URL is set! MONGO_URL: 'mongodb://xxx:[email protected]:27017/xeonss'
FULL config file below: mup.js
module.exports = {
servers: {
one: {
// TODO: set host address, username, and authentication method
host: '127.0.0.1',
username: 'ghost',
pem: '~/.ssh/id_rsa'
// password: 'XXXX'
// pem: './path/to/pem'
// password: 'server-password'
// or neither for authenticate from ssh-agent
}
},
app: {
// TODO: change app name and path
name: 'xeonss',
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://xeon.santoshsrinivas.loc',
PORT: "2614",
MONGO_URL: 'mongodb://xxx:[email protected]:27017/xeonss'
},
// ssl: { // (optional)
// // Enables let's encrypt (optional)
// autogenerate: {
// email: '[email protected]',
// // comma separated list of domains
// domains: 'website.com,www.website.com'
// }
// },
docker: {
// change to 'kadirahq/meteord' if your app is using Meteor 1.3 or older
image: 'abernix/spaceglue:node-8-onbuild',
imagePort: 2614,
args:[ // lets you add/overwrite any parameter on the docker run command (optional)
'--network="host"', // linking example
],
// lets you bind the docker container to a
// specific network interface (optional)
// bind: '127.0.0.1',
},
// Show progress bar while uploading bundle to server
// You might need to disable it on CI servers
enableUploadProgressBar: true
},
};