lib/elocal_capistrano/maintenance.rb in elocal_capistrano-1.0.7 vs lib/elocal_capistrano/maintenance.rb in elocal_capistrano-1.0.8
- old
+ new
@@ -1,13 +1,13 @@
Capistrano::Configuration.instance.load do
namespace :maintenance do
desc "Show the maintenence page and return a 503 error for every new HTTP request."
task :begin, :roles => :app do
- run "mkdir -p #{current_path}/public/system && cp #{current_path}/public/inactive.maintenance.html #{current_path}/public/system/503.html"
+ run "mkdir -p #{current_path}/public/system && cp #{current_path}/public/inactive.maintenance.html #{current_path}/public/system/maintenance.html"
end
desc "Turn off the maintenance page and resume normal operations."
task :end, :roles => :app do
- run "rm -f #{current_path}/public/system/503.html"
+ run "rm -f #{current_path}/public/system/maintenance.html"
end
end
end