by julien-c

julien-c /

Deploy Meteor apps to EC2 (or your own server)

206 Stars 43 Forks Last release: Not found 47 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:


Deploy Meteor on EC2 (or your own server)

How to install and update

The easiest way to install (or update)

is using curl:
$ curl -s | sh

You may need to

in order for the script to symlink
to your

How to use

Create a conf file named
in your project's folder, setting the following environment variables:
# IP or URL of the server you want to deploy to

If you want a different ROOT_URL, when using a load balancer for instance, set it here

Comment this if your host is not an EC2 instance


What's your project's Git repo?


Does your project use meteorite, or plain meteor?


If not using Meteorite, you need to specify this


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

What's your app name?


If your app is not on the repository root, set this


If you would like to use a different branch, set it here


Kill the forever and node processes, and deletes the bundle directory and tar file prior to deploying


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


Then just run:

$ meteoric setup

$ meteoric deploy

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

$ meteoric setup /path/to/

$ meteoric deploy /path/to/

Tested on

  • Ubuntu 13.04
  • Ubuntu 12.10


Hat tip to @netmute for his script. In our case though, we think having to rebuild native packages like

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.


We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.