lib/capistrano/tasks/sunspot.cap in h2ocube_rails_sunspot-0.0.2 vs lib/capistrano/tasks/sunspot.cap in h2ocube_rails_sunspot-0.0.3
- old
+ new
@@ -1,16 +1,19 @@
namespace :sunspot do
+ desc 'setup solr data dir'
task :setup_solr_data_dir do
on roles :app do
within shared_path do
execute :mkdir, "-p #{shared_path}/solr"
end
end
end
+ desc 'link to solr shared dirs'
task :link_to_solr_shared_dirs do
on roles :app do
within shared_path do
+ execute :rm, "-rf #{release_path}/solr/solr"
execute :ln, "-s #{shared_path}/solr #{release_path}/solr"
end
end
end