...
# cd into the root dir of our code repository
$ bundle exec cap [staging|production] deploy
# note that if there's a failure during postgres setup handlers may not run – watch out for this. if this happens it's potentially best to start over completely.
...