pat / thinking-sphinx

Sphinx/Manticore plugin for ActiveRecord/Rails
http://freelancing-gods.com/thinking-sphinx
MIT License
1.63k stars 469 forks source link

how to discover searchd from manticore running inside docker container #1243

Closed 34code closed 1 year ago

34code commented 1 year ago

It appears ts:rebuild and ts:index expects searchd in path. What if it is not available in the path and instead running inside a docker container?

I'm running an arch linux based distro so cannot install manticore natively on the system, hence the docker route..

pat commented 1 year ago

I'm not super familiar with Docker, but the best solution here is to have a copy of your app within the container as well, and then invoke all the rake tasks within the container, rather than talking to the container externally. Is this possible in your case?

34code commented 1 year ago

yes I can copy my rails code into the container, thanks for the tip