Created
January 16, 2013 16:33
-
-
Save phlegx/4548617 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 :stages, %w(production staging) | |
set :default_stage, "staging" | |
require "capistrano/ext/multistage" | |
set :application, "myapp" | |
set :repository, "[email protected]:#{application}" | |
set :bundle_without, [:development] | |
set :deploy_via, :remote_cache | |
set :update_vendors, true | |
set :scm, :git | |
set :ssh_options, { :forward_agent => true, :compression => false } | |
set :use_sudo, false | |
require "rvm/capistrano" | |
require "bundler/capistrano" | |
#set :rvm_type, :system | |
set :rvm_ruby_string, '1.9.3@myapp' | |
before 'deploy:setup', 'rvm:install_ruby' | |
after "deploy", "deploy:migrations" | |
# If you are using Passenger mod_rails uncomment this: | |
namespace :deploy do | |
task :start do ; end | |
task :stop do ; end | |
task :restart, :roles => :app, :except => { :no_release => true } do | |
run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment