diff --git a/config/deploy.example.rb b/config/deploy.example.rb index 24f6003..5f4592e 100644 --- a/config/deploy.example.rb +++ b/config/deploy.example.rb @@ -61,7 +61,7 @@ end namespace :db do desc "Create the indexes defined on your mongoid models" task :create_mongoid_indexes do - run "bundle exec rake db:mongoid:create_indexes" + run "cd #{current_path} && bundle exec rake db:mongoid:create_indexes" end end -- libgit2 0.21.2