Patrik,

In your deploy, I'd recommend a run() which is always truthy (that is, if
it's optional), the easiest way would be:

task :remove_disabling_file, :roles => [:app] do
  file_name = 'deply-failed.html'
  run("if [ -e #{file_name} ] then; unlink #{file_name}; end ")
end

(completely un-tested, and you'll have to check the "sh" docs for syntax, as
well as `man (1) test`.

That would be my suggestion for a possibly-not-existing-file during a deploy

- Lee

-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to