Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

krystal/Codebase4-Gem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codebase Gem

Install & Configure the Codebase RubyGem

  1. Install the gem on your computer

     $ gem install codebase4
    
  2. Configure the Gem to include your access token which will enable you to log deployments. YOUR_ACCOUNT_DOMAIN is the domain you use to access your Codebase account and YOUR_ACCESS_TOKEN can be found on the Deployments page of a repository.

     $ codebase token YOUR_ACCOUNT_DOMAIN YOUR_ACCESS_TOKEN
    
  3. Run a test to see if your token has been accepted fully

     $ codebase test YOUR_ACCOUNT_DOMAIN
    

Configure Capistrano

  1. 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'