Hi @amit,
thank you for your reply.
How can I check if elasticsearch is ready before I run the command?
When I run ‘curl -XGET http://localhost:9200/’ from the command, I get:
{
"status" : 200,
"name" : "Bug",
"cluster_name" : "elasticsearch",
"version" : {
"number" : "1.5.2",
"build_hash" : "62ff9868b4c8a0c45860bebb259e21980778ab1c",
"build_timestamp" : "2015-04-27T09:21:06Z",
"build_snapshot" : false,
"lucene_version" : "4.10.4"
},
"tagline" : "You Know, for Search"
}
Is this enough and OK?
Also, in order to run the command, do I do the following:
sudo -H -u forum bash
source forum_env
bin/rake search:initialize
Or should I do the following:
sudo -sHu forum bash
cd ~/cs_comments_service/
source ~/forum_env
rake search:initialize
Which would be a more appropriate approach?
Thank you very much in advance.
Best Regards,
Kostas.