Skip to content

Instantly share code, notes, and snippets.

@nz
Created April 23, 2011 21:26
Show Gist options
  • Save nz/938996 to your computer and use it in GitHub Desktop.
Save nz/938996 to your computer and use it in GitHub Desktop.
homebrew solr.sh
#!/bin/sh
if [ -z "$1" ]; then
echo "Usage: $ solr path/to/config/dir"
else
cd /Users/foo/Developer/Cellar/solr/3.1.0/libexec/example && java -Dsolr.solr.home=$1 -jar start.jar
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment