Skip to content

Instantly share code, notes, and snippets.

@pspanja
Last active December 16, 2016 18:06
Show Gist options
  • Save pspanja/202462dab3a4934948174be7a9bb4376 to your computer and use it in GitHub Desktop.
Save pspanja/202462dab3a4934948174be7a9bb4376 to your computer and use it in GitHub Desktop.
Start Solr for Solr Search Engine for eZ Platform
#!/usr/bin/env bash
if [[ $# -eq 0 ]] ; then
echo 'ERROR: no version provided'
exit 1
fi
if [ ${2} ] ; then
./__solr/${1}/bin/solr stop -all
exit 1
fi
SOLR_DEBUG=true SOLR_VERSION=${1} ./bin/.travis/init_solr.sh
if [[ ${1} == 6* ]] ; then
tail -f "__solr/${1}/server/logs/solr.log"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment