Sha256: 08a6a35614f5efec33369ca0b8954e007f1538802449a0512785f7fbe92cca25
Contents?: true
Size: 568 Bytes
Versions: 1
Compression:
Stored size: 568 Bytes
Contents
require 'thinking_sphinx/deploy/capistrano' Capistrano::Configuration.instance(:must_exist).load do # FIXME: we should find a way to write a clean 'before' hook # so that this is simply appeded to existing rules !! task :before_update_code, :roles => [:app] do thinking_sphinx.stop end task :after_update_code, :roles => [:app] do symlink_sphinx_indexes thinking_sphinx.configure thinking_sphinx.start end task :symlink_sphinx_indexes, :roles => [:app] do run "ln -nfs #{shared_path}/db/sphinx #{current_path}/db/sphinx" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zena-0.16.0 | bricks/sphinx/misc/deploy.rb |