Skip to content

Staging Deployment Guide

Graham Ullrich edited this page Sep 15, 2015 · 17 revisions

Staging branch code is deployed to Webfaction and served by ullrichsoftware.com.

Deployment to Staging

Requires SSH access to the Webfaction server. See instructions at the bottom of this page.

From the flyingcracker-project directory invoke these commands:

$ cd ansible
$ ansible-playbook -i hosts staging.yml

This command invokes ansible-playbook using our "hosts" and "staging.yml" files. Use the -vvv option for verbose output.

Deployment to Production

$ cd ansible
$ ansible-playbook -i hosts production.yml

Adding an SSH key to Webfaction

If you don't have an SSH public/private key pair you can create a new one:

$ ssh-keygen -t rsa -C "your_email@example.com"
  1. Copy your public key found at ~/.ssh/id_rsa.pub.

  2. Transfer your public key to the Webfaction server:

    $ ssh <username>@<host name>.webfactional.com

    $ vim ~/.ssh/authorized_keys

  3. Paste your public key into that file.

    $ chmod 600 ~/.ssh/authorized_keys

Now try logging off with $ exit and then $ ssh your_remote_host and it should auto login.