Strabon

view scripts/redeploy @ 308:7f1078abc31f

Added the Geonames parser
author Kostis Kyzirakos <kkyzir@di.uoa.gr>
date Wed Jun 20 19:03:13 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