moved elasticsearch index rebuild process to background
This commit is contained in:
parent
4b54642fcc
commit
0064a5bb6a
1 changed files with 4 additions and 4 deletions
|
@ -241,12 +241,12 @@ function setup_elasticsearch () {
|
|||
}
|
||||
|
||||
function elasticsearch_searchindex_rebuild () {
|
||||
zammad run rails r "Setting.set('es_url', \"${ES_CONNECTION:-http://127.0.0.1:9200}\")"
|
||||
|
||||
if [ "${REBUILD_ES_SEARCHINDEX}" == "yes" ]; then
|
||||
echo "# (Re)building Elasticsearch searchindex..."
|
||||
|
||||
zammad run rails r "Setting.set('es_url', \"${ES_CONNECTION:-http://127.0.0.1:9200}\")"
|
||||
|
||||
zammad run rake searchindex:rebuild
|
||||
nohup zammad run rake searchindex:rebuild &> ${ZAMMAD_DIR}/log/searchindex-rebuild.log &
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -273,7 +273,7 @@ function update_or_install () {
|
|||
|
||||
initialise_database
|
||||
fi
|
||||
|
||||
|
||||
elasticsearch_searchindex_rebuild
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue