Created
February 15, 2022 21:52
-
-
Save altherlex/757d82ddc30fd9108de99225a495f40b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### ElasticSearch was removed as part of 3.0 so this is deprecated | |
### 1. Run ES locally | |
[Official website](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html) | |
``` | |
docker pull docker.elastic.co/elasticsearch/elasticsearch:7.9.1 | |
docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.9.1 | |
```` | |
*Check it out on* http://localhost:9200/ | |
### 2. Add env vars on WEB and API apps: | |
``` | |
echo ELASTICSEARCH_API=http://localhost:9200 >> Product-API/.env | |
echo VUE_APP_ELASTICSEARCH_API=http://localhost:9200 >> Product-Web/.env | |
``` | |
### 3. Load Local Data into ES | |
* Notes: `python manage.py es_load_data -N` | |
*Check indexes created on* http://localhost:9200/_cat/indices?v&pretty |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment