Skip to content

Instantly share code, notes, and snippets.

@jerodsanto
Created September 10, 2009 19:29
Show Gist options
  • Save jerodsanto/184757 to your computer and use it in GitHub Desktop.
Save jerodsanto/184757 to your computer and use it in GitHub Desktop.
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