feat: add --es-address parameter to setup_es_index with .env support (#177)

This commit is contained in:
qiaofenlin 2025-07-29 14:23:54 +08:00 committed by GitHub
parent 0965d69acc
commit a6f97f61f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -88,7 +88,8 @@ atlas-hash:
setup_es_index: setup_es_index:
@echo "Setting up Elasticsearch index..." @echo "Setting up Elasticsearch index..."
@bash $(ES_SETUP_SCRIPT) --index-dir $(ES_INDEX_SCHEMA) --docker-host false @. $(ENV_FILE); \
bash $(ES_SETUP_SCRIPT) --index-dir $(ES_INDEX_SCHEMA) --docker-host false --es-address "$$ES_ADDR"
help: help:
@echo "Usage: make [target]" @echo "Usage: make [target]"