Sha256: cbcd6595f47df79be1fdfe24d49952af310365ba8c281f300f6d1205ded8ba44
Contents?: true
Size: 848 Bytes
Versions: 55
Compression:
Stored size: 848 Bytes
Contents
Capistrano::Configuration.instance(:must_exist).load do namespace :web do task :disable, :roles => :web, :except => { :no_release => true } do on_rollback { run "rm #{shared_path}/system/maintenance.html" } run "cp #{current_path}/public/maintenance.html #{shared_path}/system/maintenance.html" end end namespace :deploy do desc "Pull files from a remote server" task :download_file, :roles => :app, :except => { :no_release => true } do ENV['FILES'].split(',').each do |file| get "#{current_path}/#{file}", File.basename(file) end end end # Clean up old releases define_recipe :perform_cleanup do after "deploy", "deploy:cleanup" after "deploy:migrations" , "deploy:cleanup" after "deploy:long" , "deploy:cleanup" end end
Version data entries
55 entries across 55 versions & 2 rubygems