I have had quite a bit of trouble with this. To be honest, I have had no 
troubles with Capistrano other than with the sunspot gems. Are there any 
comprehensive resources on the web that cover configuring Sunspot with 
Capistrano? I have noticed a few gists here and there, but nothing that 
covers getting something working from scratch. Eventually I plan to have a 
separate solr box and point my app to it, however I am just trying to 
deploy sunspot embedded as it is in development mode in my Rails app.

Currently I am using Rails 4, Ruby 2, and the following gems:

gem 'sunspot_rails', :github => 'hsbt/sunspot', :branch => 'enabled-rails4'
gem 'sunspot_solr', :github => 'hsbt/sunspot', :branch => 'enabled-rails4'

Does this look correct? When I try to deploy:

2013-07-03 09:28:19 executing `bundle:install'
  * executing "cd /home/username/apps/appname/releases/20130703132819 && bundle 
install --gemfile /home/username/apps/appname/releases/20130703132819/Gemfile 
--path /home/username/apps/appname/shared/bundle --deployment --quiet --without 
development test"
    servers: ["0.0.0.0"]
    [0.0.0.0] executing command
 ** [out :: 0.0.0.0] fatal: Could not parse object 
'7ecfc66d0200a71442147ea58268e98d5302dc9c'.
 ** [out :: 0.0.0.0] 
 ** [out :: 0.0.0.0] Git error: command `git reset --hard 
7ecfc66d0200a71442147ea58268e98d5302dc9c`
 ** [out :: 0.0.0.0] 
 ** [out :: 0.0.0.0] in directory
 ** [out :: 0.0.0.0] 
 ** [out :: 0.0.0.0] 
/home/username/apps/appname/shared/bundle/ruby/2.0.0/bundler/gems/sunspot-7ecfc66d0200
 ** [out :: 0.0.0.0] 
 ** [out :: 0.0.0.0] has failed.
 ** [out :: 0.0.0.0] 
 ** [out :: 0.0.0.0] If this error persists you could try removing the cache 
directory
 ** [out :: 0.0.0.0] 
 ** [out :: 0.0.0.0] 
'/home/username/apps/appname/shared/bundle/ruby/2.0.0/cache/bundler/git/sunspot-0a37014492cdf9bb6647d30927ce000e219fac14'
 ** [out :: 0.0.0.0] 
    command finished in 32646ms
*** [deploy:update_code] rolling back



Sunspot is working locally. If someone could point me to a resource or 
anything at all that could help, it would be greatly appreciated. I just 
have not found anything that specifically addresses the issue I am having.

-- 
-- 
* 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.


Reply via email to