Forem Creators and Builders 🌱

Discussion on: Why can't I create my Forem account

Collapse
 
akhil profile image
Akhil Naidu

Yeah, I check it, the problem lies over configuring bonsai elastic search; I'm referring their documentation for better understanding of how the BONSAI_URL works.

As the elastic search was not detecting(by default), I'm actually trying to create an 'elasticsearch.rb' initialiser in config/initilizer/elasticsearach.rb

My trial right now was to force ELASTICSEARCH_URL environment variable to a public cluster rather than a local:9200.

If you have any suggestion, I would be glad to check those too.

Collapse
 
rhymes profile image
rhymes

You don't need an initializer, Elasticsearch is initialized with ELASTICSEARCH_URL, by pointing that to an external server you can run it with a managed installation of the search server. By default it points to localhost:9200 as you noticed. Have a look at .env_sample, it contains the variables we use.