Commit fc07c04e

mo khan <mo@mokhan.ca>
2014-05-17 13:41:27
use bundle exec in db backup tasks.
1 parent ea5e62d
Changed files (1)
lib
lib/tasks/database.rake
@@ -8,10 +8,10 @@ namespace :db do
   end
 
   task :backup do
-    sh "cap #{ENV['RAILS_ENV']} postgresql:backup"
+    sh "bundle exec cap #{ENV['RAILS_ENV']} postgresql:backup"
   end
 
   task :restore_to_staging => :backup do
-    sh "cap staging postgresql:restore"
+    sh "bundle exec cap staging postgresql:restore"
   end
 end