Skip to content

wescleveland/meteor_fab_deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Fabric script for deploying meteor apps

This is a quick and dirty script to satisfy the requirements I had for quickly deploying a meteor app. Note: I quickly generalized the script I am currently using to create this, there may be typos, errors, etc but this is the general idea of what has worked for me.

There is also a fabric command to dump and fetch the remote mongo database which has proved useful to recreate production data when debugging issues.

Note: this script assumes you have Meteorite installed. Change the mrt commands to meteor if you are not using Meteorite!

Installation

Install python, install fabric via pip, copy fabfile.py to the root of your meteor app. Edit the settings at the top of fabfile.py.

Examples

List commands

$ fab help

Deploy app

$ fab deploy

Restart forever process

$ fab restart_app

Fetch a dump of the app's mongo db

$ fab get_mongo_dump
$ tar -xvf dump.tar.gz
$ mongorestore

Pull requests welcomed, there are most likely better ways of doing these actions but this worked for my simple needs.

About

Fabric script for deploying meteor apps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published