Created
September 10, 2009 19:29
-
-
Save jerodsanto/184757 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :ts do | |
desc "Stop the sphinx server" | |
task :stop , :roles => :app do | |
run "cd #{current_path} && rake thinking_sphinx:stop RAILS_ENV=production" | |
end | |
desc "Start the sphinx server" | |
task :start, :roles => :app do | |
run "cd #{current_path} && rake thinking_sphinx:configure RAILS_ENV=production && rake thinking_sphinx:start RAILS_ENV=production" | |
end | |
desc "Restart the sphinx server" | |
task :restart, :roles => :app do | |
stop | |
start | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment