This allows us to pass all of the environment and configuration to the site via environment variables instead of having to hard code them in an initializer.
Per @alanpost's request the deployment steps are as followed:
(Anytime) Make a /srv/lobsters/environment file following the required format.
Merge in lobsters #579.
Deploy lobsters #579 and leave elasticsearch disabled. This will keep things on the site from using it, but we can still index stories.
Start a rails console and run the following:
ElasticSearch.client.indices.create(index: ElasticSearch.index) To create the index.
Story.find_each { |s| IndexStoryJob.perform_now(s) } To index all of the submitted stories.
Comment.find_each { |s| IndexCommentJob.perform_now(s) } To index all of the submitted comments.
Enable elasticsearch in config/site.yml.
Once that is completed, we should have all of the stories and comments searchable again.
Supports the elasticsearch pull request.
This allows us to pass all of the environment and configuration to the site via environment variables instead of having to hard code them in an initializer.
Per @alanpost's request the deployment steps are as followed:
/srv/lobsters/environment
file following the required format.ElasticSearch.client.indices.create(index: ElasticSearch.index)
To create the index.Story.find_each { |s| IndexStoryJob.perform_now(s) }
To index all of the submitted stories.Comment.find_each { |s| IndexCommentJob.perform_now(s) }
To index all of the submitted comments.Once that is completed, we should have all of the stories and comments searchable again.