Browse Source

Customiza parâmetros do Solr

pull/2443/head
Edward 6 years ago
committed by GitHub
parent
commit
cb82810a51
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      start.sh

8
start.sh

@ -37,8 +37,8 @@ create_env() {
echo "DEFAULT_FROM_EMAIL = ""${EMAIL_HOST_USER-''}" >> $FILENAME echo "DEFAULT_FROM_EMAIL = ""${EMAIL_HOST_USER-''}" >> $FILENAME
echo "SERVER_EMAIL = ""${EMAIL_HOST_USER-''}" >> $FILENAME echo "SERVER_EMAIL = ""${EMAIL_HOST_USER-''}" >> $FILENAME
echo "USE_SOLR = ""${USE_SOLR-False}" >> $FILENAME echo "USE_SOLR = ""${USE_SOLR-False}" >> $FILENAME
echo "SOLR_COLLECTION = ""${SOLR_COLLECTION-'sapl_$RANDOM'}" >> $FILENAME echo "SOLR_COLLECTION = ""${SOLR_COLLECTION-sapl}" >> $FILENAME
echo "SOLR_URL = ""${SOLR_URL-'http://localhost:8983'}" >> $FILENAME echo "SOLR_URL = ""${SOLR_URL-http://localhost:8983}" >> $FILENAME
echo "[ENV FILE] done." echo "[ENV FILE] done."
@ -58,8 +58,8 @@ yes yes | python3 manage.py migrate
## SOLR ## SOLR
USE_SOLR="${USE_SOLR:=False}" USE_SOLR="${USE_SOLR:=False}"
SOLR_URL="${SOLR_URL:='http://localhost:8983'}" SOLR_URL="${SOLR_URL:=http://localhost:8983}"
SOLR_COLLECTION="${SOLR_COLLECTION:='sapl_$RANDOM'}" SOLR_COLLECTION="${SOLR_COLLECTION:=sapl}"
NUM_SHARDS=${NUM_SHARDS:=1} NUM_SHARDS=${NUM_SHARDS:=1}
RF=${RF:=1} RF=${RF:=1}

Loading…
Cancel
Save