• Stars
    star
    213
  • Rank 184,762 (Top 4 %)
  • Language
    Shell
  • Created over 11 years ago
  • Updated over 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Deploy Meteor apps to EC2 (or your own server)

Meteoric

Deploy Meteor on EC2 (or your own server)

How to install and update

The easiest way to install (or update) meteoric is using curl:

$ curl -s https://raw.githubusercontent.com/julien-c/meteoric.sh/master/install | sh

You may need to sudo in order for the script to symlink meteoric to your /usr/local/bin.

How to use

Create a conf file named meteoric.config.sh in your project's folder, setting the following environment variables:

# IP or URL of the server you want to deploy to
APP_HOST=meteor.julien-c.fr

# If you want a different ROOT_URL, when using a load balancer for instance, set it here
#ROOT_URL=mycustom.url.com

# Comment this if your host is not an EC2 instance
EC2_PEM_FILE=~/.ssh/proxynet.pem

# What's your project's Git repo?
GIT_URL=git://github.com/SachaG/Microscope.git

# Does your project use meteorite, or plain meteor?
METEORITE=true

# If not using Meteorite, you need to specify this
METEOR_RELEASE=0.6.4

#If you have an external service, such as Google SMTP, set this
#MAIL_URL=smtp://USERNAME:[email protected]:465

# What's your app name?
APP_NAME=microscope

# If your app is not on the repository root, set this
APP_PATH=.

# If you would like to use a different branch, set it here
GIT_BRANCH=master

# Kill the forever and node processes, and deletes the bundle directory and tar file prior to deploying
FORCE_CLEAN=false

# If you want to do something before forever starts Meteor, you can do it here
# NOTE: Don't forget to use a semi-colon at the end of every command
#PRE_METEOR_START="export ENVIRONMENT=prod;"

Then just run:

$ meteoric setup

$ meteoric deploy

If you'd like to use a different location for meteoric.config.sh, supply it as a second parameter:

$ meteoric setup /path/to/your.config.sh

$ meteoric deploy /path/to/your.config.sh

Tested on

  • Ubuntu 13.04
  • Ubuntu 12.10

Inspiration

Hat tip to @netmute for his meteor.sh script. In our case though, we think having to rebuild native packages like fibers kind of defeats the whole point of bundling the Meteor app. Additionally, our approach enables hot code fixes (you don't have to stop/start your node server, and your users' apps shouldn't be disrupted).

This script is also based on this previous post: How to deploy Meteor on Amazon EC2.

Cheers!

More Repositories

1

Circular

An open source Buffer app clone
HTML
1,029
star
2

epub

node.js epub reader
JavaScript
334
star
3

iso3166

ISO 3166-1 alpha-2 mapping
PHP
64
star
4

mongovel

A Laravel-ish wrapper to the PHP Mongo driver
PHP
33
star
5

laravel-oauth2-server

Demo integration of Brent Shaffer's oauth2-server-php into Laravel 4
PHP
28
star
6

annotator-php

Annotator store built on Silex and MongoDB
PHP
15
star
7

trainer-proposal

Python
13
star
8

topsites

Alexa Top Sites API
PHP
6
star
9

deepnoop

Noop object with arbitrary number of nested attributes that are also noop.
JavaScript
6
star
10

PageRank-Fast

PageRank extension for Google Chrome. Fast and simple.
JavaScript
5
star
11

arxiv-to-hf

Chrome extension to add a link from each Arxiv page to the corresponding HF Paper page
JavaScript
5
star
12

snapchat-lensstudio

4
star
13

Pinterest-Button-Javascript

Pinterest's Javascripts, beautified and stored for historical reference
JavaScript
4
star
14

ios11nlp-benchmark

Perl
4
star
15

tagger-http

Basic HTTP server for Tagger Named Entity Recognizer
Python
3
star
16

coreml-protobuf-parser

Protobuf bindings for ML model formats, inspired by netron
JavaScript
3
star
17

neuralconvo-data

2
star
18

mp4-convert

JavaScript
2
star
19

lofos

2
star
20

epubserver

Go
2
star
21

MammouthApp

A very simple productivity app for Mac OS X Lion
Objective-C
2
star
22

taxrates

PHP
1
star
23

conferencer

A package to easily set-up conference-like websites
PHP
1
star
24

MongoValidator

Adds support for the `unique` and `exists` Laravel validation rules for MongoDB.
PHP
1
star
25

masterofcoin

Turn Stripe Webhook events into Hipchat messages
CSS
1
star
26

flat-huggingface

TypeScript
1
star
27

oauth2-example-auth-server

An example OAuth 2.0 auth server
PHP
1
star
28

TrackUnfollowers

Track who unfollows you on Twitter
1
star
29

Tampon

Tampon is now Circular
1
star
30

AssetFixture

Swift
1
star
31

ScrollTest

Testing basic Phonegap WebView scrolling behavior
JavaScript
1
star
32

SimpleResize

Simple Composer port of Jarrod Oberto's Image Resizing class
1
star
33

Statusnet-Annotations

Plugin to do Twitter-style Annotations (arbitrary custom semantic metadata that can be attached to notices) in StatusNet
1
star
34

mongo-php-daemon-bug

Small set-up demonstrating a bug in PHP Mongo driver
1
star