Hi Robbie
I don't have a great depth of capistrano knowledge, so you're going to know
more than me on this topic generally. What you've said makes sense - I would
expect the db role to be where Sphinx tasks are executed (though I'm guessing
you meant thinking_sphinx_roles instead of thinking_sphinx_rails_env).
Is it worth overriding thinking_sphinx_roles instead?
role :sphinx, %w{[email protected]}
set :thinking_sphinx_roles, :sphinx
Wish I knew more to be more certain with my suggestions.
--
Pat
On 30 Sep 2014, at 1:10 pm, Robby Russell <[email protected]> wrote:
> Hi all,
>
> We inherited a project and are in the process of deploying it to new set of
> servers. During this process, I'm trying to run searchd on a single server
> that a handful of app servers will talk to. Having said that, I'm struggling
> to figure out how to have the bundled cap tasks only run on a specific server.
>
> I see that there are references to a role here:
>
> *
> https://github.com/pat/thinking-sphinx/blob/v3.1.1/lib/thinking_sphinx/capistrano/v3.rb#L3
>
> Is fetch(:thinking_sphinx_rails_env) just defaulting to whatever we set in a
> :db role in our deployment scripts? If so, I tried setting the designated
> sphinx server with:
>
> role :db, %w{[email protected]}
>
> When I run `cap production thinking_sphinx:generate` it attempts to do this
> on every server referenced in config/deployment/production.rb (regardless of
> role).
>
> Am I overlooking something?
>
> Thanks in advance.
>
> Cheers,
> Robby
>
> --
> You received this message because you are subscribed to the Google Groups
> "Thinking Sphinx" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/thinking-sphinx.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/d/optout.