Skip to content

Instantly share code, notes, and snippets.

@vyorkin
Created March 12, 2014 14:13
Show Gist options
  • Save vyorkin/9507754 to your computer and use it in GitHub Desktop.
Save vyorkin/9507754 to your computer and use it in GitHub Desktop.
require 'active_support/core_ext/hash'
require 'capistrano/undev'
require 'capistrano-db-tasks'
require 'airbrake/capistrano3'
require './config/boot'
SSHKit.config.command_map[:rake] = 'bundle exec rake'
lock '3.1.0'
set :application, 'ebisra4kom'
set :repo_url, 'git@huit:vyorkin/ebisra4kom.git'
set :stages, %w(staging production)
set :default_stage, 'staging'
set :branch, 'staging'
set :user, 'poweruser'
set :git_enable_submodules, 1
set :deploy_to, '/rest/u/apps/ebisra4kom'
set :deploy_via, :remote_cache
set :ssh_options, {
:user => 'vagrant',
:forward_agent => true
}
set :db_local_clean, true
set :undev_ruby_version, File.open('.ruby-version').read.chomp
set :puma_service_name, 'puma-ebisra4kom'
set :sidekiq_service_name, 'sidekiq-ebisra4kom'
before 'deploy:compile_assets', 'deploy:write_database_yml'
after 'deploy:finishing', 'airbrake:deploy', 'deploy:write_errbit_config', 'errbit:notify'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment