Clearcap

Contains ClearSight Studio's common Capistrano settings.

Installation

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
end

Webfaction

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

  1. Set up SSH http://optic.clearsightstudio.com/post/192-setting-up-ssh-on-webfaction
  2. Set up a deployment key in Bitbucket with the server's id_rsa.pub (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.~

deploy.rb

require "bundler/capistrano"

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

role :web, "someserver.webfactional.com"                   # Your HTTP server, Apache/etc
role :app, "someserver.webfactional.com"                   # This may be the same as your `Web` server
role :db,  "someserver.webfactional.com", :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

Contributing

  1. Don't.