Skip to content

Instantly share code, notes, and snippets.

View davidsmalley's full-sized avatar

David Smalley davidsmalley

View GitHub Profile
after "deploy:setup", "thinking_sphinx:shared_sphinx_folder"
after 'deploy:finalize_update', 'thinking_sphinx:symlink_indexes'
after 'deploy:restart', 'thinking_sphinx:restart'
namespace :thinking_sphinx do
task :symlink_indexes, :roles => [:app] do
run "ln -nfs #{shared_path}/db/sphinx #{latest_release}/db/sphinx"
end
task :restart do
configure