Skip to content

Commit

Permalink
Check for existence of Rakefile in capistrano rake method.
Browse files Browse the repository at this point in the history
  • Loading branch information
smith authored and pat committed May 1, 2012
1 parent 6e42518 commit b0b1e1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/thinking_sphinx/deploy/capistrano.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def rake(*tasks)
rails_env = fetch(:rails_env, "production")
rake = fetch(:rake, "rake")
tasks.each do |t|
run "if [ -d #{release_path} ]; then cd #{release_path}; else cd #{current_path}; fi; #{rake} RAILS_ENV=#{rails_env} #{t}"
run "if [ -d #{release_path} ]; then cd #{release_path}; else cd #{current_path}; fi; if [ -f Rakefile ]; then #{rake} RAILS_ENV=#{rails_env} #{t}; fi;"
end
end
end
Expand Down

0 comments on commit b0b1e1e

Please sign in to comment.