Strabon

view scripts/redeploy @ 304:43d00ac76683

downgrade sl4j to 1.5.8 instead of 1.6.6 due to warnings by Tomcat
author Babis Nikolaou <charnik@di.uoa.gr>
date Wed Jun 20 12:10:38 2012 +0300 (2012-06-20)
parents
children eebc02275912
line source
1 #! /bin/bash
3 echo "This script must be executed in Strabon folder"
5 while getopts po option
6 do
7 case "$option" in
8 o) echo "offline"; offline="-o";;
9 p) echo "package"; package="true";;
10 esac
11 done
13 if [ "$package" == "true" ]; then
14 mvn $offline clean package
15 fi
17 sudo cp endpoint/target/strabon-endpoint-*.war /var/lib/tomcat6/webapps/endpoint.war &&
19 sudo service postgresql restart &&
20 sudo service tomcat6 restart