Report abuse


			
namespace :deploy do
  task :after_update_code, :roles => [:app, :db, :web] do
    symlink_sphinx_indexes
  end

  desc "create a symlink for the sphinx index files"
  task :symlink_sphinx_indexes, :roles => :app do
    run "ln -nfs #{shared_path}/sphinx #{release_path}/db/sphinx"
    # The add something to reindex or whatever
    # I prefer to have a cronjob going instead
  end
end