Sha256: 090ded7d14f88a66359a6ac69b18beca98d28094c251ae9082564e88d2e2b480

Contents?: true

Size: 679 Bytes

Versions: 4

Compression:

Stored size: 679 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
        after "deploy:symlink",           "sphinx:restart"
      end
    end
  end
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fdlcap-0.4.17 lib/fdlcap/recipes/thinking_sphinx.rb
fdlcap-0.4.15 lib/fdlcap/recipes/thinking_sphinx.rb
fdlcap-0.4.14 lib/fdlcap/recipes/thinking_sphinx.rb
fdlcap-0.4.13 lib/fdlcap/recipes/thinking_sphinx.rb