Permalink
Browse files

Bug fix

  • Loading branch information...
Winton Welsh
Winton Welsh committed Sep 2, 2008
1 parent eb348d8 commit 800a3236de09a2a36e2c130f7b314719fb277873
Showing with 3 additions and 9 deletions.
  1. +3 −9 lib/recipes/rails.rb
View
@@ -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"

0 comments on commit 800a323

Please sign in to comment.