Sha256: c364cb60d4856a292fde4a818987a6c559d0ebbc4a44d846770c6bd4b3f13573
Contents?: true
Size: 1.05 KB
Versions: 1
Compression:
Stored size: 1.05 KB
Contents
namespace :sunspot do task :setup_solr_data_dir do on roles :app do within shared_path do execute :mkdir, "-p #{shared_path}/solr" end end end task :link_to_solr_shared_dirs do on roles :app do within shared_path do execute :ln, "-s #{shared_path}/solr #{release_path}/solr" end end end desc 'start solr' task :start do on roles :app do within release_path do execute :rake, "sunspot:solr:start RAILS_ENV=#{fetch :stage}" end end end desc 'stop solr' task :stop do on roles :app do within release_path do execute :rake, "sunspot:solr:stop RAILS_ENV=#{fetch :stage};true" end end end desc 'reindex solr' task :reindex do on roles :app do within release_path do execute :rake, "sunspot:solr:reindex RAILS_ENV=#{fetch :stage};true" end end end end after 'deploy:check', 'sunspot:setup_solr_data_dir' before 'deploy:publishing', 'sunspot:link_to_solr_shared_dirs' before 'deploy:publishing', 'sunspot:reindex'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
h2ocube_rails_sunspot-0.0.2 | lib/capistrano/tasks/sunspot.cap |