sant0sk1 (owner)

Revisions

gist: 184757 Download_button fork
public
Public Clone URL: git://gist.github.com/184757.git
Embed All Files: show embed
thinking_sphinx_cap.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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