I am trying to deploy Sunspot Solr to a server using a Capistrano in my RoR
application. I have a task to reindex:
desc "reindex the whole database"
task :reindex, :roles => :app do
stop
run "rm -rf #{shared_path}/solr/data"
start
run "cd #{current_path} && RAILS_ENV=#{rails_env} bundle exec rake
sunspot:solr:reindex"
end
When Capistrano tries to execute this task I get the warning:
* executing "cd /home/username/apps/appname/current &&
RAILS_ENV=production bundle exec rake sunspot:solr:reindex"
servers: ["0.0.0.0"]
[10.0.63.19] executing command
** [out :: 0.0.0.0] *Note: the reindex task will remove your current
indexes and start from scratch.
** [out :: 0.0.0.0]
** [out :: 0.0.0.0] If you have a large dataset, reindexing can take a
very long time, possibly weeks.
** [out :: 0.0.0.0]
** [out :: 0.0.0.0] This is not encouraged if you have anywhere near or
over 1 million rows.
** [out :: 0.0.0.0]
** [out :: 0.0.0.0] *Are you sure you want to drop your indexes and
completely reindex? (y/n)*
** [out :: 0.0.0.0]
The task just hangs at this point and cannot complete. I have been
searching for ways to bypass this warning, however haven't found any
surprisingly. Any help is appreciated.
--
--
* You received this message because you are subscribed to the Google Groups
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/capistrano?hl=en
---
You received this message because you are subscribed to the Google Groups
"Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.