Sha256: cc476fa444c26173852962f332524bfcea7b4f60b38b6d91292605f99e00eac8

Contents?: true

Size: 594 Bytes

Versions: 19

Compression:

Stored size: 594 Bytes

Contents

namespace :sphinx do
  desc "Setup sphinx"

  desc "Setup sphinx configuration for this application"
  task :setup, roles: :web do
    template "sphinx_init.erb", "/tmp/sphinx"
    run "#{sudo} mv /tmp/sphinx /etc/init.d/#{application}_sphinx"
    run "#{sudo} chmod +x /etc/init.d/#{application}_sphinx"
    run "#{sudo} update-rc.d #{application}_sphinx defaults"
  end
  # after "deploy:setup", "nginx:setup"
  
  %w[start stop reindex].each do |command|
    desc "#{command} sphinx"
    task command, roles: :web do
      run "/etc/init.d/#{application}_sphinx #{command}"
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
pixelforce_cms-2.6 lib/generators/pixelforce_cms/templates/recipes/sphinx.rb
pixelforce_cms-2.5 lib/generators/pixelforce_cms/templates/recipes/sphinx.rb
pixelforce_cms-2.4 lib/generators/pixelforce_cms/templates/recipes/sphinx.rb
pixelforce_cms-2.3 lib/generators/pixelforce_cms/templates/recipes/sphinx.rb
pixelforce_cms-2.2 lib/generators/pixelforce_cms/templates/recipes/sphinx.rb
pixelforce_cms-2.0 lib/generators/pixelforce_cms/templates/recipes/sphinx.rb
pixelforce_cms-1.0 lib/generators/pixelforce_cms/templates/recipes/sphinx.rb
pixelforce_cms-0.9.9.9 lib/generators/pixelforce_cms/templates/recipes/sphinx.rb
pixelforce_cms-0.9.9.8 lib/generators/pixelforce_cms/templates/recipes/sphinx.rb
pixelforce_cms-0.9.9.7 lib/generators/pixelforce_cms/templates/recipes/sphinx.rb
pixelforce_cms-0.9.9.6 lib/generators/pixelforce_cms/templates/recipes/sphinx.rb
pixelforce_cms-0.9.9.5 lib/generators/pixelforce_cms/templates/recipes/sphinx.rb
pixelforce_cms-0.9.9.4 lib/generators/pixelforce_cms/templates/recipes/sphinx.rb
pixelforce_cms-0.9.9.3 lib/generators/pixelforce_cms/templates/recipes/sphinx.rb
pixelforce_cms-0.9.9.2 lib/generators/pixelforce_cms/templates/recipes/sphinx.rb
pixelforce_cms-0.9.9.1 lib/generators/pixelforce_cms/templates/recipes/sphinx.rb
pixelforce_cms-0.9.8 lib/generators/pixelforce_cms/templates/recipes/sphinx.rb
pixelforce_cms-0.9.7 lib/generators/pixelforce_cms/templates/recipes/sphinx.rb
pixelforce_cms-0.9.5 lib/generators/pixelforce_cms/templates/recipes/sphinx.rb