Permalink
Browse files

Bug fix

  • Loading branch information...
1 parent f14a686 commit eb348d82fea8c0ab862f881ff1f1c2c3a9104ddc Winton Welsh committed Sep 2, 2008
Showing with 9 additions and 3 deletions.
  1. +9 −3 lib/recipes/rails.rb
View
@@ -42,17 +42,23 @@
namespace :thinking_sphinx do
desc "Configures thinking_sphinx"
task :default, :roles => :app do
- sudo "cd #{release_path} && rake RAILS_ENV=production ts:config"
+ Dir.chdir release_path do
+ sudo "rake RAILS_ENV=production ts:config"
+ end
end
desc "Stop thinking_sphinx"
task :stop, :roles => :app do
- sudo "cd #{release_path} && rake RAILS_ENV=production ts:stop"
+ Dir.chdir release_path do
+ sudo "rake RAILS_ENV=production ts:stop"
+ end
end
desc "Start thinking_sphinx"
task :start, :roles => :app do
- sudo "cd #{release_path} && rake RAILS_ENV=production ts:start"
+ Dir.chdir release_path do
+ sudo "rake RAILS_ENV=production ts:start"
+ end
end
desc "Restart thinking_sphinx"

0 comments on commit eb348d8

Please sign in to comment.