18F/myusa — pull request #196 by yozlet (2014-08-21 23:47:47+00:00)
Title: Feature/database separation

Completes #146.

To spin up a DB server, set up your `.chef/knife.rb` then

```sh
bundle exec knife ec2 server create -G myusa-staging-db --identity-file $AWS_KEY_PAIR_PATH --ssh-user ubuntu --node-name 'MyUSA staging app' -r 'role[app]' -S $AWS_KEY_PAIR_NAME
```

Then grab the IP address/hostname and set up an app server accordingly:

```sh
bundle exec knife ec2 server create -G myusa-staging-web --identity-file $AWS_KEY_PAIR_PATH --ssh-user ubuntu --node-name 'MyUSA staging app' -r 'role[app]' -S charlie -j '{"myusa":{"database":{"host":"[DATABASE IP ADDRESS GOES HERE"}}}'
```