mup with Ubuntu 14.04.3

Server Settings

/etc/sudoers

%sudo    ALL=(ALL:ALL) NOPASSWD:ALL

mup

$ mup init

Meteor Up: Production Quality Meteor Deployments
------------------------------------------------

Empty Project Initialized!

mup.json

{
  // Server authentication info
  "servers": [
    {
      "host": "hostname",
      "username": "root",
      "password": "password"
      // or pem file (ssh based authentication)
      //"pem": "~/.ssh/id_rsa"
    }
  ],

  // Install MongoDB in the server, does not destroy local MongoDB on future setup
  "setupMongo": true,

  // WARNING: Node.js is required! Only skip if you already have Node.js installed on server.
  "setupNode": true,

  // WARNING: If nodeVersion omitted will setup 0.10.36 by default. Do not use v, only version number.
  "nodeVersion": "0.10.36",

  // Install PhantomJS in the server
  "setupPhantom": true,

  // Show a progress bar during the upload of the bundle to the server. 
  // Might cause an error in some rare cases if set to true, for instance in Shippable CI
  "enableUploadProgressBar": true,

  // Application name (No spaces)
  "appName": "app_name",

  // Location of app (local directory)
  "app": "/path/to/the/app",

  // Configure environment
  "env": {
    "PORT": 80,
    "ROOT_URL": "http://myapp.com",
    "MONGO_URL": "mongodb://localhost:27017/app_name"
  },

  // Meteor Up checks if the app comes online just after the deployment
  // before mup checks that, it will wait for no. of seconds configured below
  "deployCheckWaitTime": 15
}
$ mup setup

Meteor Up: Production Quality Meteor Deployments
------------------------------------------------

“ Checkout Kadira!
 It's the best way to monitor performance of your app.
 Visit: https://kadira.io/mup ”


Started TaskList: Setup (linux)
[hostname] - Installing Node.js
[hostname] - Installing Node.js: SUCCESS
[hostname] - Installing PhantomJS
[hostname] - Installing PhantomJS: SUCCESS
[hostname] - Setting up Environment
[hostname] - Setting up Environment: SUCCESS
[hostname] - Copying MongoDB configuration
[hostname] - Copying MongoDB configuration: SUCCESS
[hostname] - Installing MongoDB
[hostname] - Installing MongoDB: SUCCESS
[hostname] - Configuring upstart
[hostname] - Configuring upstart: SUCCESS

$ mup deploy

Meteor Up: Production Quality Meteor Deployments
------------------------------------------------

“ Checkout Kadira!
 It's the best way to monitor performance of your app.
 Visit: https://kadira.io/mup ”

Building Started: /path/to/the/app

Started TaskList: Deploy app 'app_name' (linux)
[hostname] - Uploading bundle
[hostname] - Uploading bundle: SUCCESS
[hostname] - Setting up Environment Variables
[hostname] - Setting up Environment Variables: SUCCESS
[hostname] - Invoking deployment process
[hostname] - Invoking deployment process: SUCCESS

$ mup start

Meteor Up: Production Quality Meteor Deployments
------------------------------------------------


Started TaskList: Starting Application (linux)
[hostname] - Starting app
[hostname] - Starting app: SUCCESS

$ mup stop

Meteor Up: Production Quality Meteor Deployments
------------------------------------------------


Started TaskList: Stopping Application (linux)
[hostname] - Stopping app
[hostname] - Stopping app: SUCCESS

댓글 남기기