To edit pages or tickets please login with username/password: aaf/aaf

Ticket #154 (closed enhancement: fixed)

Opened 1 year ago

Last modified 8 months ago

include capistrano receipes for ferret index and server maintenance

Reported by: jk Assigned to: jk
Priority: major Milestone: 0.5
Component: 0plugin Version:
Keywords: Cc: j@jjb.cc

Description

maybe some rake tasks, too?

have a look at http://rubyforge.org/projects/palmtree/

Change History

12/11/07 23:02:57 changed by aaf

See also #190.

02/01/08 01:36:20 changed by aaf

  • cc set to j@jjb.cc.

my rake task: http://pastie.textmate.org/private/4xyk2o0obibzi2tmpbog

my capistrano tasks:

namespace :ferret do
  desc "Stop the Ferret server, and continue even if the operation fails."
  task :stop_safe, :roles => :app, :on_error => :continue do
    top.ferret.stop
  end

  desc "Start Ferret Server"
  task :start, :roles => :app do
    top.ferret.start
  end

  desc "Stop Ferret Server"
  task :stop, :roles => :app do
    top.ferret.stop
  end

  desc "Restart Ferret Server"
  task :restart, :roles => :app do
    top.ferret.restart
  end

  desc "Rebuild the Ferret index"
  task :rebuild, :roles => :app do
    run "cd #{current_path} && rake production ferret:rebuild"
  end

  desc "Destroy the Ferret index"
  task :destroy, :roles => :app do
    run "cd #{current_path} && rm -rf index/production index/development index/test"
  end

end

02/02/08 21:38:04 changed by jk

  • status changed from new to closed.
  • resolution set to fixed.

added a generic rebuild rake task as well as some capistrano recipes for starting/stopping DRb and index maintenance in production environments.

To edit pages or tickets please login with username/password: aaf/aaf