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.
- Set up SSH http://optic.clearsightstudio.com/post/192-setting-up-ssh-on-webfaction
- Set up a deployment key in Bitbucket with the server's id_rsa.pub (create one using
ssh-keygen -t rsaunless exists?) - Copy the database.yml to the server's
shared/config/database.yml(you should be gitignoring the database.yml) gem install capistranocapify .- Gemfile should have the lines above (in Installation)
- Edit
deploy.rbto look like below in the deploy.rb section. - Edit
Capfileto use the asset pipeline. - bundle up, then run
cap deployand 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
- Don't.