Created
December 6, 2010 00:41
-
-
Save jcode/729648 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 :application, "deliverit" | |
set :repository, "https://jcode.svn.beanstalkapp.com/homero/branches/deliverit/" | |
set :deploy_via, :remote_cache | |
set :use_sudo, false | |
set :user, "root" | |
set :deploy_to, "/var/rails/#{application}" | |
set :scm, :subversion | |
set :keep_releases, 2 | |
role :app, "deliveritapp.com" | |
role :db, "deliveritapp.com", :primary => true | |
namespace :deploy do | |
task :start do ; end | |
task :stop do ; end | |
task :restart, :roles => :app, :except => { :no_release => true } do | |
run "cd #{deploy_to}/current && /usr/bin/env rake gems:install RAILS_ENV=production" | |
run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}" | |
run "cd #{deploy_to}/current && /usr/bin/env rake themes:cache:create RAILS_ENV=production" | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment