Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #166 from lmarlow/safe_enable_web

Teach deploy:web:enable to fail gracefully
  • Loading branch information...
commit bc839ac37882a477012529934dc4d06558deade8 2 parents d46dfd5 + 22a1c8b
Lee Hambley leehambley authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/capistrano/recipes/deploy.rb
4 lib/capistrano/recipes/deploy.rb
View
@@ -546,7 +546,7 @@ def try_runner(*args)
DESC
task :disable, :roles => :web, :except => { :no_release => true } do
require 'erb'
- on_rollback { run "rm #{shared_path}/system/#{maintenance_basename}.html" }
+ on_rollback { run "rm -f #{shared_path}/system/#{maintenance_basename}.html" }
warn <<-EOHTACCESS
@@ -588,7 +588,7 @@ def try_runner(*args)
web-accessible again.
DESC
task :enable, :roles => :web, :except => { :no_release => true } do
- run "rm #{shared_path}/system/#{maintenance_basename}.html"
+ run "rm -f #{shared_path}/system/#{maintenance_basename}.html"
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.