err this line:
run "ln -nfs #{shared_path}/db/sphinx #{current_path}/db/sphinx"
should be:
run "ln -nfs #{shared_path}/db/sphinx #{release_path}/db/sphinx"
On 24 iun., 13:01, Marcelo Barbudas <[email protected]> wrote:
> Hi.
>
> It seems the capistrano recipes are kindof old. I had two problems
> with them:
>
> 1) Running something like
> task :after_update_code, :roles => [:app] do
> thinking_sphinx.configure
> end
>
> Doesn't send :roles => [ :app ] to the underlying tasks. In my case TS
> was being executed on all roles, including DB servers, and everything
> crashed.
>
> The proper fix is to include :roles => :app in the thinking_sphinx/lib/
> deploy/capistrano.rb to each task.
>
> 2) :after_update(as mentioned
> herehttp://freelancing-god.github.com/ts/en/deployment.html)
> apparently is deprecated
>
> This is what I'm using:
>
> task :sphinx_stop, :roles => [:app] do
> thinking_sphinx.stop
> end
>
> task :sphinx_start, :roles => [:app] do
> symlink_sphinx_indexes
> thinking_sphinx.start
> end
>
> task :symlink_sphinx_indexes, :roles => [:app] do
> run "ln -nfs #{shared_path}/db/sphinx #{current_path}/db/sphinx"
> end
>
> before "deploy:update_code", "sphinx_stop"
> after "deploy:update_code", "sphinx_start"
>
> --
> M.
--
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.