set :application, 'sapphire'
set :deploy_to, "/home/sapphire/#{fetch(:application)}"

set :repo_url, 'git@github.com:Sapphire-CM/Sapphire.git'
set :scm, :git
set :branch, ENV["REVISION"] || ENV["BRANCH_NAME"] || "master"

set :stages, %w(staging production)

set :linked_files, %w{config/database.yml config/mail.yml config/schedule.rb config/secrets.yml}
set :linked_dirs, %w{log uploads persistent tmp/pids public/assets}

set :log_level, :info

set :bundle_binstubs, nil

set :default_env, {
  'PATH' => 'PATH=$PATH:/home/sapphire/bin'
}
