Created
September 5, 2014 21:07
-
-
Save lawlesst/b9da455bf7665d524bf0 to your computer and use it in GitHub Desktop.
Experimenting with deploying Vitor with Jetty: https://wiki.duraspace.org/display/VIVO/Building+a+VIVO+distribution+for+other+servlet+containers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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