Skip to content

Instantly share code, notes, and snippets.

@lawlesst
Created September 5, 2014 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lawlesst/b9da455bf7665d524bf0 to your computer and use it in GitHub Desktop.
Save lawlesst/b9da455bf7665d524bf0 to your computer and use it in GitHub Desktop.
#!/bin/sh -e
set -x # Print commands and their arguments as they are executed.
JETTY_HOME=/dock/jetty7.6.14
VITRO_HOME=/tmp/vitrohome
STAGE_DIR=/tmp/vbuild
ant clean distribute -Dskiptests=true
#ant distribute -Dskiptests=true
mkdir -p $STAGE_DIR
tar -xvf .build/distribution.tar.gz -C $STAGE_DIR
tar -xvf $STAGE_DIR/vitrohome.tar -C $VITRO_HOME/
mkdir -p $VITRO_HOME/solr/
tar -xvf $STAGE_DIR/solrhome.tar -C $VITRO_HOME/solr/
mv $STAGE_DIR/*war $JETTY_HOME/webapps/.
cd $JETTY_HOME
java -jar start.jar -Djetty.port=8983 -Dsolr.solr.home=$VITRO_HOME/solr -Dvitro.home=$VITRO_HOME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment