Skip to content

Commit

Permalink
Merge pull request #1 from reithor/1.0
Browse files Browse the repository at this point in the history
added Solr support
  • Loading branch information
reithor authored May 9, 2023
2 parents 62bdb96 + aa0e4fc commit bda611b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion ddev-dxp-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,18 @@ pre_check()
fi
}

add-solr() {
echo "# " >> .env.local
echo "# dxp-installer generated" >> .env.local
echo "SEARCH_ENGINE=solr" >> .env.local
echo "SOLR_CORE=collection1" >> .env.local
echo "SOLR_DSN=http://solr:8983/solr" >> .env.local
ddev get reithor/ddev-ibexa-solr
ddev restart
ddev php bin/console ibexa:reindex
exit
}

add-varnish() {
echo "# " >> .env.local
echo "# dxp-installer generated" >> .env.local
Expand Down Expand Up @@ -89,7 +101,7 @@ add-elastic() {
if [ $# -eq 1 ]
then
case $1 in
add-varnish | add-redis | add-elastic )
add-varnish | add-redis | add-elastic | add-solr )
res=$(pre_check)
if [[ ! -z "$res" ]]
then
Expand Down

0 comments on commit bda611b

Please sign in to comment.