Hello,

Does anyone have detailed instructions for deploying thinking sphinx
with capistrano?  Unfortunately I'm new to capistrano and am having a
little trouble finding clear documentation (pointers on this would be
appreciated as well).

Here's what I've tried so far:

In my Capfile:
require 'thinking_sphinx/deploy/capistrano'

In my deploy.rb:
namespace :deploy do
  task :after_set_rails_env do
    thinking_sphinx.stop
  end

  task :after_update do
    # rebuilding the index is required if any changes were made to the
indexes
    thinking_sphinx.index
    thinking_sphinx.start
  end
end

Also, following the example of Railscast #166 I put the following in
lib/thinking_sphinx.rake:
begin
  require 'thinking_sphinx/tasks'
rescue LoadError
end

When I do a "cap integrated deploy" I get the following error:
  * executing `integrated'
    triggering start callbacks for `deploy'
  * executing `multistage:ensure'
  * executing `deploy'
  * executing `deploy:update'
    triggering before callbacks for `deploy:update'
  * executing `deploy:set_rails_env'
  * executing `deploy:after_set_rails_env'
  * executing `thinking_sphinx:stop'
  * executing `thinking_sphinx:configure'
  * executing "cd /Library/Rails/blah/integrated/current && rake
thinking_sphinx:configure RAILS_ENV=production"
    servers: ["localhost"]
Password:
    [localhost] executing command
*** [err :: localhost] rake aborted!
*** [err :: localhost]
*** [err :: localhost] Don't know how to build task
'thinking_sphinx:configure'
*** [err :: localhost]
*** [err :: localhost]
*** [err :: localhost] (See full trace by running task with --trace)
*** [err :: localhost]
 ** [out :: localhost] (in /Library/Rails/blah/integrated/releases/
20090613212247)
    command finished
failed: "sh -c \"cd /Library/Rails/blah/integrated/current && rake
thinking_sphinx:configure RAILS_ENV=production\"" on localhost

Any help would be appreciated!

Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" 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/thinking-sphinx?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to