-
-
Save pierrevalade/122334 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sphinx and ThinkingSphinx | |
after "deploy:migrate", "thinking_sphinx:home_made" | |
namespace :thinking_sphinx do | |
task :home_made do | |
# ensure the log directory exist | |
run "mkdir -p /var/log/engineyard/sphinx/#{application}" | |
steps = [:configure, :reindex] | |
run steps.map {|step| "/engineyard/bin/thinking_sphinx_searchd #{application} #{step}"}.join(' && ') | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment