Pat Allan on 15 Aug, 2013 12:43 AM
Sphinx doesn't reside on Heroku's servers, but on the Flying
Sphinx servers (if they had Sphinx on the Heroku servers, perhaps I
wouldn't have needed to build Flying Sphinx), so Foreman won't be
able to find searchd.
Foreman isn't the right tool for the job for managing Sphinx (on
Heroku, at least, even though it may work well locally), as while
you can start Sphinx and stop Sphinx using the flying-sphinx CLI
tool (which could be referenced within your Procfile), there's no
equivalent of nodetach, and so there's no ongoing process to
I know it means working a little differently on Heroku compared
to locally, but I'd recommend sticking to the flying-sphinx
commands to stop/start/index Sphinx data through Foreman.
I hope this is clear - let me know if you have further