-
Notifications
You must be signed in to change notification settings - Fork 1
Deployonreador config deploy.rb
descl edited this page May 6, 2013
·
1 revision
set :application, "reador"
set :scm, :git # You can set :scm explicitly or Capistrano will make an intelligent guess based on known version control directory names
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
server "zone-project2.inria.fr", :app, :web, :db, :primary => true
set :scm, :git
set :deploy_to, "/appli/#{application}/"
set :repository, "https://github.com/descl/ZONE.git"
# if you want to clean up old releases on each deploy uncomment this:
# after "deploy:restart", "deploy:cleanup"
# if you're still using the script/reaper helper you will need
# these http://github.com/rails/irs_process_scripts
# 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
after 'deploy:update_code', 'deploy:migrate'
set :keep_releases, 10
after "deploy:restart", "deploy:cleanup"
set :use_sudo, false