Skip to content

Instantly share code, notes, and snippets.

@jcode
Created December 6, 2010 00:41
Show Gist options
  • Save jcode/729648 to your computer and use it in GitHub Desktop.
Save jcode/729648 to your computer and use it in GitHub Desktop.
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