Strabon

view scripts/redeploy @ 281:21e67e71f209

Added log4j dependencies.
Please update your project configuration in eclipse.
author Kostis Kyzirakos <kkyzir@di.uoa.gr>
date Mon Jun 18 16:02:15 2012 +0300 (2012-06-18)
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