Public | Automated Build

Last pushed: a year ago
Short Description
base image
Full Description


Machine Names

Setting up a development environment

$ provision=yes vagrant up --provision
$ vagrant halt
$ vagrant up 
$ fab dev deploy

If initial set up of machine fails try running:

$ sudo apt-get update --fix-missing

Refering ansible hosts in Fabric

Entries in ansible's hosts file get translated into Fabric tasks.
For example the configuration


generates a task named 'dev' for the whole group. So you can do

$ fab dev ping

And generates a task for each host, replacing the .s (dots) with _
So you can run:

$ fab dev ping    
$ fab london_peddan_com ping    
$ fab kaylee ping    
$ fab jayne ping

Deploying to Production

Make sure you can ssh to the production machines as deployer. The machines are organised by
function. We have 3 types of machines: webservers, workers and services. To deploy each one you just run:

$ fab webservers deploy
$ fab services deploy
$ fab workers deploy

You can run all 3 at once if you want:

$ fab webservers deploy services deploy workers deploy

Exporting/Importing the database

$ fab frontend backup_db
$ fab dev restore_db

The first time you are importing the DB you must remove the -c param from pg_restore.


Add this to your ssh/config:

host w1
user deployer

host w2
user deployer

host services
user deployer

host frontend
user deployer
Docker Pull Command
Source Repository