Sha256: a2c2f9a67e8d30147d60730232e02b14accf76e0d71170155b5b5c5f965d42eb
Contents?: true
Size: 940 Bytes
Versions: 2
Compression:
Stored size: 940 Bytes
Contents
# Thinking Sphinx for Capistrano require 'thinking_sphinx/deploy/capistrano' Capistrano::Configuration.instance.load do before "thinking_sphinx:symlink", "thinking_sphinx:setup" after "deploy:finalize_update", "thinking_sphinx:symlink" before "deploy:restart", "thinking_sphinx:configure" after "sync:up:db", "thinking_sphinx:rebuild" namespace :thinking_sphinx do desc "Prepare for sphinx config" task :setup, :roles => :app do run "mkdir -p #{shared_path}/config/sphinx" run "mkdir -p #{shared_path}/db/sphinx" run "mkdir -p #{shared_path}/tmp/sockets" end desc "Make symlink for sphinx configs and data" task :symlink, :roles => :app do run "ln -nfs #{shared_path}/config/sphinx #{latest_release}/config/sphinx" run "ln -nfs #{shared_path}/db/sphinx #{latest_release}/db/sphinx" run "ln -nfs #{shared_path}/tmp/sockets #{latest_release}/tmp/sockets" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
capones_recipes-1.18.0 | lib/capones_recipes/tasks/thinking_sphinx.rb |
capones_recipes-1.17.0 | lib/capones_recipes/tasks/thinking_sphinx.rb |