lib/capistrano/tasks/sunspot.cap in h2ocube_rails_sunspot-0.0.4 vs lib/capistrano/tasks/sunspot.cap in h2ocube_rails_sunspot-0.0.5

- old
+ new

@@ -43,9 +43,16 @@ within release_path do execute :rake, "sunspot:solr:reindex RAILS_ENV=#{fetch :stage};true" end end end + + desc 'restart solr' + task :restart do + invoke 'sunspot:stop' + sleep 1 + invoke 'sunspot:start' + end end after 'deploy:check', 'sunspot:setup_solr_data_dir' before 'deploy:publishing', 'sunspot:link_to_solr_shared_dirs'