Description
This repo contains scripts for managing the Elasticsearch server that is used by the zilly-backend Rails app
Getting Started
This is a brief description of the steps to follow.
- Install Ruby or via rvm with the command
$ rvm install 2.3.4
- Install Elasitcsearch.
Dependencies:
The project requires:
- Ruby version 2.3.4
- Elasticsearch server
Run it
- Install bundler gem:
$ gem install bundler
- Install all gem dependences:
$ bundle install
- Configure environment variables
$ cp .env.example .env $ nano .env
- Elasticsearch index setup
$ bundle exec rake elasticsearch:create_indices elasticsearch:create_aliases
Note: Indexes will be empty. Ask around if you need to import data.
Choosing a server
To point the script at a server other than your local server, just edit the ELASTICSEARCH_URL
environment variable in the .env
file.
Rake tasks
Run bundle exec rake -T
to see a list of all available Rake tasks.