This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set :branch, 'develop' | |
set :user, 'stage_deployer' | |
set :domain, 'staging.your.domain' | |
set :rails_env, "staging" | |
set :deploy_to, "/home/#{user}/#{application}" | |
server "#{domain}", :web, :app, :db, :asset_syncer, :sidekiqer, :primary => true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set :whenever_command, "bundle exec whenever" | |
set :assets_role, [:web, :shadow, :asset_syncer, :sidekiqer] | |
begin | |
require 'capistrano_colors' | |
rescue LoadError | |
puts "`gem install capistrano_colors` to get output more userfriendly." | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config valid only for Capistrano 3.1 | |
lock '3.1.0' | |
set :application, "CoolApplication" | |
set :repository, "your@git.location" | |
set :sidekiq_role, :sidekiqer | |
set :rvm_ruby_version, '2.0.0-p247@global' | |
set :linked_files, %w{config/database.yml config/application.yml} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'capistrano' | |
gem 'capistrano-ext' | |
gem 'capistrano_colors' | |
gem 'rvm-capistrano' | |
gem 'whenever', require: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem "capistrano-rails" | |
gem "capistrano-sidekiq" | |
gem 'capistrano-rvm' | |
gem 'capistrano-bundler' | |
gem 'whenever','~> 0.9.0' , require: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Load DSL and Setup Up Stages | |
require 'capistrano/setup' | |
# Includes default deployment tasks | |
require 'capistrano/deploy' | |
require 'capistrano/rvm' | |
require 'capistrano/bundler' | |
require 'capistrano/rails/assets' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
load 'deploy' | |
# Uncomment if you are using Rails' asset pipeline | |
load 'deploy/assets' | |
load 'config/deploy' # remove this line to skip loading any of the default tasks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Load DSL and Setup Up Stages | |
require 'capistrano/setup' | |
# Includes default deployment tasks | |
require 'capistrano/deploy' | |
require 'capistrano/rvm' | |
require 'capistrano/bundler' | |
require 'capistrano/rails/assets' |
NewerOlder