Contains ClearSight Studio's common Capistrano settings.


Add these lines to your application's Gemfile:

group :development do
  gem 'capistrano', require: false
  gem 'clearcap', git: "[email protected]:clearsightstudio/clearcap.git", require: false


NOTE: This is a WIP. It's for Webfaction specifically.

  1. Set up SSH
  2. Set up a deployment key in Bitbucket with the server's (create one using ssh-keygen -t rsa unless exists?)
  3. Copy the database.yml to the server's shared/config/database.yml (you should be gitignoring the database.yml)
  4. gem install capistrano
  5. capify .
  6. Gemfile should have the lines above (in Installation)
  7. Edit deploy.rb to look like below in the deploy.rb section.
  8. Edit Capfile to use the asset pipeline.
  9. bundle up, then run cap deploy and enjoy your output.~


require "bundler/capistrano"

set :application, "myappname"
set :repository,  "[email protected]:clearsightstudio/myreponame.git"
set :deploy_to, "/home/myusername/webapps/myappname"

role :web, ""                   # Your HTTP server, Apache/etc
role :app, ""                   # This may be the same as your `Web` server
role :db,  "", :primary => true # This is where Rails migrations will run

set :user, "myusername"

require 'clearcap/deploy/webfaction'

# Add any overrides for the Clearcap defaults here.
# set :scm, :something_else


  1. Don't.