Skip to content

Commit

Permalink
Ignore error when deploy on a fresh server
Browse files Browse the repository at this point in the history
On first deploy the file current/REVISION not yet exists.
We need to tolerate that
  • Loading branch information
phuongnd08 committed Nov 23, 2014
1 parent 49f59ed commit fb12da6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capistrano-conditional/tasks/integration.rake
Expand Up @@ -8,7 +8,7 @@ namespace :conditional do
desc "Initializes the conditional deployment functionality"
task :apply do
on primary(:app) do
currently_deployed = capture("cat #{current_path}/REVISION").strip
currently_deployed = capture("cat #{current_path}/REVISION").strip rescue nil
@deploy = ConditionalDeploy.new(self, currently_deployed, fetch(:git_deploying))
@deploy.apply_conditions!
end
Expand Down

0 comments on commit fb12da6

Please sign in to comment.