Sha256: 365d598a218f63dfcef73bc3b672f413bb4c18b47d29aa21a9c5c16fe77a5850
Contents?: true
Size: 569 Bytes
Versions: 19
Compression:
Stored size: 569 Bytes
Contents
namespace :maintenance do desc 'Show the maintenence page and return a 503 error for every new HTTP request.' task :begin do on release_roles :web do execute [ "mkdir -p #{current_path}/public/system", "cp #{current_path}/public/inactive.maintenance.html #{current_path}/public/system/maintenance.html" ].join(' && ') end end desc 'Turn off the maintenance page and resume normal operations.' task :end do on release_roles :web do execute "rm -f #{current_path}/public/system/maintenance.html" end end end
Version data entries
19 entries across 19 versions & 1 rubygems