aboutsummaryrefslogtreecommitdiffstats
path: root/deploy.sh
blob: b5c62ef85ca1861bb72b1fe460b387aec792192c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash   

export LIBRARY=/home/ubuntu/apache-tomcat-8.0.24
#echo ... stopping tomcat
#$LIBRARY/bin/shutdown.sh

declare -a services=('cos' 'evc' 'svc')
for svc in "${services[@]}"
do
	for del in `ls -d $LIBRARY/webapps/${svc}*`; do
		echo ... removing $del
		rm -rf $del
	done
done 

echo ... building new war files
mvn clean install

echo ... moving war files to tomcat root
cp ./svc/svcmgr/target/svcmgr.war $LIBRARY/webapps/.
cp ./evc/evcmgr/target/evcmgr.war $LIBRARY/webapps/.
cp ./cos/cosmgr/target/cosmgr.war $LIBRARY/webapps/.
ls -l $LIBRARY/webapps/*.war

#echo ... starting tomcat
#$LIBRARY/bin/shutdown.sh
#$LIBRARY/bin/startup.sh