Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bug fix

  • Loading branch information...
commit 800a3236de09a2a36e2c130f7b314719fb277873 1 parent eb348d8
Winton Welsh authored
Showing with 3 additions and 9 deletions.
  1. +3 −9 lib/recipes/rails.rb
View
12 lib/recipes/rails.rb
@@ -42,23 +42,17 @@
namespace :thinking_sphinx do
desc "Configures thinking_sphinx"
task :default, :roles => :app do
- Dir.chdir release_path do
- sudo "rake RAILS_ENV=production ts:config"
- end
+ sudo ";cd #{release_path} && rake RAILS_ENV=production ts:config"
end
desc "Stop thinking_sphinx"
task :stop, :roles => :app do
- Dir.chdir release_path do
- sudo "rake RAILS_ENV=production ts:stop"
- end
+ sudo ";cd #{release_path} && rake RAILS_ENV=production ts:stop"
end
desc "Start thinking_sphinx"
task :start, :roles => :app do
- Dir.chdir release_path do
- sudo "rake RAILS_ENV=production ts:start"
- end
+ sudo ";cd #{release_path} && rake RAILS_ENV=production ts:start"
end
desc "Restart thinking_sphinx"
Please sign in to comment.
Something went wrong with that request. Please try again.