thinking-sphinx icon indicating copy to clipboard operation
thinking-sphinx copied to clipboard

Is it possible to add environment variables to thinking_sphinx.yml

Open atomical opened this issue 1 year ago • 1 comments

Is it possible to add environment variables to thinking_sphinx.yml? It looks like it's not possible but wondering if there is another solution for setting host address dynamically.

atomical avatar Dec 04 '24 15:12 atomical

thinking_sphinx.yml gets parsed as an ERB file, so you can add <%= ENV["SPHINX_HOST"] %> or similar in there :)

pat avatar Dec 04 '24 22:12 pat