alethes / meteor-up

Production Quality Meteor Deployment to Anywhere

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

meteor-up Stories in Ready

Production Quality Meteor Deployment to Anywhere

This version of Meteor Up is still in development. To test it with your app,

First setup Meteor Up

git clone https://github.com/kadirahq/meteor-up
cd meteor-up
npm install
npm link

Then setup your project

mup init <your project>

make changes to mup.js. and add a settings.js file. Then,

mup setup
mup deply

mup.js format

Note that we are using a mup.js file instead of old mup.json file. You can write regular javascript code in this file to things like reading contents of ssh key file. A example format for this file as following.

module.exports = {
  servers: {
    one: {
      host: '1.2.3.4',
      user: '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'
      }
    }
    setupMongo: 1,
    dockerImage: 'madushan1000/meteord-test' //optional
  },

  mongo: { //only if setupMongo: 1, optional
    oplog: true,
    port: 27017,
    servers: {
      one: {},
    },
  },
};

About

Production Quality Meteor Deployment to Anywhere


Languages

Language:JavaScript 85.9%Language:Shell 13.6%Language:HTML 0.5%Language:CSS 0.1%