This version of Meteor Up is still in development. Please check arunoda/meteor-up for the stable version.
Production Quality Meteor Deployment to Anywhere
First setup Meteor Up
git clone https://github.com/kadirahq/meteor-up
cd meteor-up
npm install
npm link
Then setup your project
mkdir .deploy
cd .deploy
mup init <your project>
make changes to mup.js
. and add a settings.js
file. Then,
mup setup
mup deploy
Note that we are using a mup.js
file instead of the old mup.json
file. You can write regular javascript code in this file to change things like reading the contents of an ssh key file. An example format for this file is as follows.
module.exports = {
servers: {
one: {
host: '1.2.3.4',
username: 'root'
// pem:
// password:
// or leave blank for authenticate from ssh-agent
}
},
meteor: {
name: 'app',
path: '../app',
servers: {
one: {}, two: {}, three: {} //list of servers to deploy, from the 'servers' list
},
env: {
ROOT_URL: 'app.com',
MONGO_URL: 'mongodb://localhost/meteor'
},
logs: { //optional
driver: 'syslog',
opts: {
url:'udp://syslogserverurl.com:1234'
}
}
dockerImage: 'madushan1000/meteord-test', //optional
deployCheckWaitTime: 60 //default 10
},
mongo: { //optional
oplog: true,
port: 27017,
servers: {
one: {},
},
},
};