Codebase Gem
Install & Configure the Codebase RubyGem
-
Install the gem on your computer
$ gem install codebase4 -
Configure the Gem to include your access token which will enable you to log deployments.
YOUR_ACCOUNT_DOMAINis the domain you use to access your Codebase account andYOUR_ACCESS_TOKENcan be found on the Deployments page of a repository.$ codebase token YOUR_ACCOUNT_DOMAIN YOUR_ACCESS_TOKEN -
Run a test to see if your token has been accepted fully
$ codebase test YOUR_ACCOUNT_DOMAIN
Configure Capistrano
-
In order to automatically track deployments, you just need to include the Codebase recipes in your Capfile - these are provided by the gem you have already installed.
Capistrano 2
require 'codebase/recipes'Capistrano 3
require 'codebase/capistrano3'

