Skip to content

Commit

Permalink
Merge pull request #192 from caius/diff_using_command_map
Browse files Browse the repository at this point in the history
Call diff using sshkit's command map
  • Loading branch information
mattbrictson authored Dec 16, 2016
2 parents 002b465 + 0e83881 commit 8a0e1c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capistrano/tasks/migrations.rake
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace :deploy do
on fetch(:migration_servers) do
conditionally_migrate = fetch(:conditionally_migrate)
info '[deploy:migrate] Checking changes in db' if conditionally_migrate
if conditionally_migrate && test("diff -qr #{release_path}/db #{current_path}/db")
if conditionally_migrate && test(:diff, "-qr #{release_path}/db #{current_path}/db")
info '[deploy:migrate] Skip `deploy:migrate` (nothing changed in db)'
else
info '[deploy:migrate] Run `rake db:migrate`'
Expand Down

0 comments on commit 8a0e1c4

Please sign in to comment.