Skip to content

Instantly share code, notes, and snippets.

@lawlesst
Created September 5, 2014 21:07
Embed
What would you like to do?
#!/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