Sha256: a04777bb5660f06786cb04316d79cef1e5238cb4034d1829564033fa13c4f9be

Contents?: true

Size: 643 Bytes

Versions: 1

Compression:

Stored size: 643 Bytes

Contents

Capistrano::Configuration.instance(:must_exist).load do
  # These recipies assume an engineyard configuration
  
  # searchd assumes indexing and configuring being called directly on searchd
  define_recipe :thinking_sphinx do
    
    #ALWAYS need to do this
    after "deploy:symlink_configs",   "thinking_sphinx:symlink"
    
    # Only need to do this if DB has changed
    after 'deploy:finalize_update' do
      look_for_db_changes
      if db_changed?
        after "deploy:migrate",           "sphinx:configure"
        after "deploy:migrate",           "sphinx:reindex"
      else
        sphinx.restart
      end
    end
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fdlcap-0.4.12 lib/fdlcap/recipes/thinking_sphinx.rb