Try running rake commands in the release_path, since current_path may be invalid for two reasons:
Try running rake commands in the release_path, since current_path may be
invalid for two reasons:

1. No Sphinx configuration on the server (first-ever deploy or first with
Sphinx).

2. Changing Sphinx configuration between releases. You want the newest
code to generate the configuration file.

pierrevalade/thinking-sphinx,fxposter/thinking-sphinx,Napolskih/thinking-sphinx,agibralter/thinking-sphinx,dhh/thinking-sphinx