Customized Deployment of Meteor App

. 1 min read

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:yyyy@127.0.0.1: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:yyyy@127.0.0.1:27017/xeonss'
    },

    // ssl: { // (optional)
    //   // Enables let's encrypt (optional)
    //   autogenerate: {
    //     email: 'email.address@domain.com',
    //     // 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
  },
};

Tags

AWS Analytics Antifragile Apache Spark Apple Apps Arbitrage Automation Awesome BBMP Bangalore Black Swan Bonds Boonex Bootstrap Brokerage Charges CFPB CMS CSS Calypso Camelot Capital Markets Charts Chirp Choropleth Chrome Code Igniter Collections Containerization Converters Cycling DalalBeat Data Analytics Data Journalism Data Mining Data Munging Data Privacy Data Science Databases Debt Design Design Stock DesignStock Diet Django Docker Document Processing Dropbox Electron Electronics Entertainment Entrepreneurship Exercise FFMPEG Facebook Finance Fire TV Stick Fitness Forerunner From-The-News Fun Futures Gaana Garmin General Geocoding Getting Started Ghost Google APIs GraphicsMagick HHVM HTTPS Hackathon Hacks Hardware Health House Keeping Housing IBM BlueMix IBrokers IPinfo Ideas Image Conversion Image Processing Infographics Interactive Brokers Internet Investing IoT Legal Lets Encrypt Mac Machine Learning Mailbox app Mapbox Markdown Marketing Meteor Mockups MongoDB Mortgages Movies Music MyPad MySQL Nativefier Nature Netflix Newsletters Nginx Node.js Notes OCR OSX Open Source OpenCPU Options PDF PHP Pebble Peloton Personal Photography Picture Platforms Plex Portable Apps Productivity Property Tax PyroCMS Quantitative Finance R-Project Random Raspberry Pi Research Resources Reticulate Robot S3 SQLite STT Scraping Security Server Shell Shiny Side Project Sikuli Speech Recognition Spider Pro Spinning Spotify Startup Resources Startups Strategy Sublime Text System Monitoring Tax Terminal Tips To Do Tools Torrent Trading Trends Troubleshooting USElection2016 Ubuntu Unix Valuations Video Conversion Visualization Wagtail Wearables Weekend Fun WhatsApp Wordpress anaconda annie bash catalina cv2 daily coding dailycoding data.table debugging devtools downloader e-Signatures ggplot git go google maps hat-tip iOS iPad iPhone iTunes javascript jupyter logging macos numpy opencv optionality plotly python rstats videos youtube