Code Monkey home page Code Monkey logo

meteor-up's Introduction

meteor-up Stories in Ready

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

Note. npm version 3 is required to setup developer dependencies correctly.

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

Then setup your project

mkdir .deploy
cd .deploy
mup init <your project>

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

mup setup
mup deploy

Your settings.json file should be in the same directory, and it will automatically be used.

mup.js format

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',
    volumes: { //optional, lets you add docker volumes
      "/host/path": "/container/path", //passed as '-v /host/path:/container/path' to the docker run command
      "/second/host/path": "/second/container/path"
    },
    servers: {
      one: {}, two: {}, three: {} //list of servers to deploy, from the 'servers' list
    },
    buildOptions: {
      serverOnly: true,
      debug: true,
      mobileSettings: {
        yourMobileSetting: "setting value"
      }
    },
    env: {
      ROOT_URL: 'app.com',
      MONGO_URL: 'mongodb://localhost/meteor'
    },
    log: { //optional
      driver: 'syslog',
      opts: {
        "syslog-address":'udp://syslogserverurl.com:1234'
      }
    }
    dockerImage: 'madushan1000/meteord-test', //optional
    deployCheckWaitTime: 60 //default 10
  },

  mongo: { //optional
    oplog: true,
    port: 27017,
    servers: {
      one: {},
    },
  },
};

FAQ

Q) I get an deploy verification error with logs like below (Similar to issue 88)

Verifying Deployment: FAILED

Error: 
-----------------------------------STDERR-----------------------------------
 run:
npm WARN deprecated 
npm WARN deprecated   npm -g install npm@latest
npm WARN deprecated

A) Try increasing the value of deployCheckWaitTime field in mup.js file.

meteor-up's People

Contributors

madushan1000 avatar thani-sh avatar arunoda avatar siphion avatar alethes avatar wizonesolutions avatar yasinuslu avatar neobii avatar

Watchers

David Pankros avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.