deploying meteor with meteor up



Similar documents
Repris de : Version Debian (de base)

Host your websites. The process to host a single website is different from having multiple sites.

Deploy Rails BlueBook 2014 Edition

VDCF - Virtual Datacenter Control Framework for the Solaris TM Operating System

CentOS. Apache. 1 de 8. Pricing Features Customers Help & Community. Sign Up Login Help & Community. Articles & Tutorials. Questions. Chat.

Setup a Virtual Host/Website

Technical specification

INUVIKA OVD VIRTUAL DESKTOP ENTERPRISE

Running Nginx as Reverse Proxy server

1. If there is a temporary SSL certificate in your /ServerRoot/ssl/certs/ directory, move or delete it. 2. Run the following command:

AlienVault Unified Security Management (USM) 4.x-5.x. Deploying HIDS Agents to Linux Hosts

13.1 Backup virtual machines running on VMware ESXi / ESX Server

Creating a DUO MFA Service in AWS

Deployment and Monitoring. Pascal Robert MacTI

Pexip Infinity Reverse Proxy Deployment Guide

Apache HTTP Server. Implementation Guide. (Version 5.7) Copyright 2013 Deepnet Security Limited

Comodo MyDLP Software Version 2.0. Installation Guide Guide Version Comodo Security Solutions 1255 Broad Street Clifton, NJ 07013

The SSL device also supports the 64-bit Internet Explorer with new ActiveX loaders for Assessment, Abolishment, and the Access Client.

VMware Identity Manager Connector Installation and Configuration

FILECLOUD HIGH AVAILABILITY

Dry Dock Documentation

HOWTO. Configure Nginx for SSL with DoD CAC Authentication on CentOS 6.3. Joshua Penton Geocent, LLC

Ciphermail Gateway Separate Front-end and Back-end Configuration Guide

How to Install Multicraft on a VPS or Dedicated Server (Ubuntu bit)

Upgrading VMware Identity Manager Connector

Continuous Integration and Delivery. manage development build deploy / release

OpenDaylight & PacketFence install guide. for PacketFence version 4.5.0

Ansible. Configuration management tool and ad hoc solution. Marcel Nijenhof

Table of Contents. Chapter 1: Installing Endpoint Application Control. Chapter 2: Getting Support. Index

Setting Up SSL on IIS6 for MEGA Advisor

Signiant Agent installation

How To - Implement Clientless Single Sign On Authentication in Single Active Directory Domain Controller Environment

Git - Working with Remote Repositories

Deploying workloads with Juju and MAAS in Ubuntu 13.04

Partek Flow Installation Guide

Setting up your virtual infrastructure using FIWARE Lab Cloud

SecuritySpy Setting Up SecuritySpy Over SSL

Magento Search Extension TECHNICAL DOCUMENTATION

insync Installation Guide

<Insert Picture Here> Introducing Hudson. Winston Prakash. Click to edit Master subtitle style

OS Installation: CentOS 5.8

Perforce Helix Threat Detection On-Premise Deployment Guide

UFTP AUTHENTICATION SERVICE

Cloud.com CloudStack Community Edition 2.1 Beta Installation Guide

Installing an open source version of MateCat

How to setup HTTP & HTTPS Load balancer for Mediator

OS Installation Guide Red Hat Linux 9.0

VMware vcenter Log Insight Security Guide

Installation Guide. Copyright (c) 2015 The OpenNMS Group, Inc. OpenNMS SNAPSHOT Last updated :19:20 EDT

Installing an SSL certificate on the InfoVaultz Cloud Appliance

Building Clouds with OpenNebula 3.2

OpenGeo Suite for Linux Release 3.0

Enterprise Content Management System Monitor. Server Debugging Guide CENIT AG Bettighofer, Stefan

Virtual machine W4M- Galaxy: Installation guide

escan SBS 2008 Installation Guide


WatchGuard SSL v3.2 Update 1 Release Notes. Introduction. Windows 8 and 64-bit Internet Explorer Support. Supported Devices SSL 100 and 560

Asia Web Services Ltd. (vpshosting.com.hk)

BOA: Drupal Utopia. Jim Smith. Drupal Camp Charlotte June 10, 2012

Ruby on Rails (Ruby 1.9.2, Rails 3.1.1) Installation

Easy Setup Guide 1&1 CLOUD SERVER. Creating Backups. for Linux

BlackBerry Enterprise Service 10. Version: Configuration Guide

Pertino HA Cluster Deployment: Enabling a Multi- Tier Web Application Using Amazon EC2 and Google CE. A Pertino Deployment Guide

Kollaborate Server Installation Guide!! 1. Kollaborate Server! Installation Guide!

Contents Set up Cassandra Cluster using Datastax Community Edition on Amazon EC2 Installing OpsCenter on Amazon AMI References Contact

F-Secure Messaging Security Gateway. Deployment Guide

Configuring HAproxy as a SwiftStack Load Balancer

Wolfr am Lightweight Grid M TM anager USER GUIDE

Native SSL support was implemented in HAProxy 1.5.x, which was released as a stable version in June 2014.

JAMF Software Server Installation Guide for Linux. Version 8.6

VMware vcenter Support Assistant 5.1.1

JAMF Software Server Installation and Configuration Guide for Linux. Version 9.2

PROXY SETUP WITH IIS USING URL REWRITE, APPLICATION REQUEST ROUTING AND WEB FARM FRAMEWORK OR APACHE HTTP SERVER FOR EMC DOCUMENTUM EROOM

OnCommand Performance Manager 1.1

JAMF Software Server Installation and Configuration Guide for Linux. Version 9.0

Local Caching Servers (LCS): User Manual

IM and Presence Disaster Recovery System

MATLAB on EC2 Instructions Guide

IIS, FTP Server and Windows

Stripe. Chapters. Copyright. Authors. Stripe modules for oscommerce Online Merchant. oscommerce Online Merchant v2.3

CYAN Secure Web Microsoft ISA Server Deployment Guide

Deploying the BIG-IP System v10 with Oracle Application Server 10g R2

Apache and Virtual Hosts Exercises

Installation, Configuration and Administration Guide

Covene Cohesion Server Installation Guide A Modular Platform for Pexip Infinity Management November 11, 2014 Version 2.0 Revision 1.

Bitrix Site Manager. VMBitrix Virtual Machine. Quick Start And Usage Guide

QuickDNS 4.6 Installation Instructions

White Paper. Fabasoft on Linux - Preparation Guide for Community ENTerprise Operating System. Fabasoft Folio 2015 Update Rollup 2

How To - Implement Single Sign On Authentication with Active Directory

Tonido Cloud Admin Guide

JAMF Software Server Installation and Configuration Guide for OS X. Version 9.2

How to Set Up 2-Factor Authentication in Horizon View with Google Authenticator

Enterprise SSL Support

Table of Contents. Online backup Manager User s Guide

Alinto Mail Server Pro

Kaspersky Endpoint Security 8 for Linux INSTALLATION GUIDE

QuickStart Guide for Managing Mobile Devices. Version 9.2

Install an SSL Certificate onto SilverStream. Sender Recipient Attached FIles Pages Date. Development Internal/External None 5 6/16/08

Web Application Firewall

LICENSE4J LICENSE ACTIVATION AND VALIDATION PROXY SERVER USER GUIDE

Transcription:

deploying meteor with meteor up

reference http://code.krister.ee/hosting-multiple-instances-of-meteor-on-digitalocean/ https://rtcamp.com/tutorials/nodejs/node-js-npm-install-ubuntu/ https://gentlenode.com/journal/meteor-19-deploying-your-applications-in-asnap-with-meteor-up-mup/41 https://www.digitalocean.com/community/tutorials/how-to-set-up-httpauthentication-with-nginx-on-ubuntu-12-10 https://github.com/arunoda/meteor-up

vps Memory: 1G+ Swap: Same as memory Disk size: 4G+ CPUs: 1 OS: Ubuntu 12.04 LTS

server setup

packages > as root install git, build tools and nginx > apt-get remove -y apache2 > apt-get install -y git build-essential nginx node repo > apt-get install python-software-properties > apt-add-repository ppa:chris-lea/node.js > apt-get update node.js/npm install > apt-get install nodejs meteor > apt-get install -y curl > curl https://install.meteor.com/ sh

workstation setup

mup install on local development workstation > npm install -g mup

app initialization > cd /.../[app_name]/ > mup init This will create two files: settings.json and mup.json Leave settings.js alone, customize mup.json as below Add mup.json file to your git ignore settings (global is recommended)

{ public : {} } settings.json

mup.json { } // Server authentication info "servers": [ { "host": "server.com", // Your server fqdn "username": "root", // pem file (ssh based authentication) "pem": "~/.ssh/id_rsa" // need to add your public rsa key on server first } ], // 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": false, // WARNING: If nodeversion omitted will setup 0.10.29 by default. Do not use v, only version number. "nodeversion": "0.10.33", // Install PhantomJS in the server "setupphantom": true, // Application name (No spaces) "appname": "[app_name]", // Location of app (local directory on your dev workstation) "app": "~/.../[app_name]/", // Configure environment "env": { "ROOT_URL": "http://server.com", // your server fqdn "PORT": 3001 // change to avoid existing apps conflicting }, // 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

preflight If everything has been set up correctly, the following command in the /[app_name] directory > cd ~/.../[app_name] > mup setup should yield output similar to this Meteor Up: Production Quality Meteor Deployments ------------------------------------------------ Started TaskList: Setup (linux) [server.com] - Installing PhantomJS [server.com] Installing PhantomJS: SUCCESS [server.com] - Setting up Environment [server.com] Setting up Environment: SUCCESS [server.com] - Copying MongoDB configuration [server.com] Copying MongoDB configuration: SUCCESS [server.com] - Installing MongoDB [server.com] Installing MongoDB: SUCCESS [server.com] - Configuring upstart [server.com] Configuring upstart: SUCCESS Completed TaskList: Setup (linux) This is only necessary once, before first app deployment.

deploy! If everything has been set up correctly, the following command in the [app_name] directory cd ~/.../[app_name] mup deploy should yield output similar to this Meteor Up: Production Quality Meteor Deployments ------------------------------------------------ Building Started: ~/.../[app_name] Started TaskList: Deploy app '[app_name]' (linux) [server.com] - Uploading bundle [server.com] Uploading bundle: SUCCESS [server.com] - Setting up Environment Variables [server.com] Setting up Environment Variables: SUCCESS [server.com] - Invoking deployment process [server.com] Invoking deployment process: SUCCESS Completed TaskList: Deploy app '[app_name]' (linux) If so, your meteor app is now running at the specified port. For instance, http:// server.com:3001 would work. Note: Deployment bundles the meteor app using 'meteor bundle' then copies the bundle to /opt/[app_name]/ on the server and cycles the service on the server.

nginx proxying To respond at normal HTTP port (80) once DNS is configured, configure nginx for the app. /etc/nginx/conf.d/[fqdn].conf: server { listen 80; server_name [fqdn]; location / { proxy_pass http://localhost:3001; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection upgrade ; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; } } The important parts are server_name and proxy_pass. /etc/init.d/nginx restart

optional HTTP auth on site https://www.digitalocean.com/community/tutorials/how-to-create-a-sslcertificate-on-nginx-for-ubuntu-12-04

next steps firehol to prevent external access to any port other than 22 or 443 fail2ban or ssh brute force run each meteor app under it's own local user account as per https://www.digitalocean.com/ community/tutorials/how-to-deploy-a-meteor-jsapplication-on-ubuntu-14-04-with-nginx