aboutsummaryrefslogtreecommitdiffstats
path: root/deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh20
1 files changed, 11 insertions, 9 deletions
diff --git a/deploy.sh b/deploy.sh
index e267f4b..b5c62ef 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -1,12 +1,13 @@
#!/bin/bash
-echo ... stopping tomcat
-/Library/Tomcat/bin/shutdown.sh
+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/Tomcat/webapps/${svc}*`; do
+ for del in `ls -d $LIBRARY/webapps/${svc}*`; do
echo ... removing $del
rm -rf $del
done
@@ -16,10 +17,11 @@ echo ... building new war files
mvn clean install
echo ... moving war files to tomcat root
-cp ./cos/cosmgr/target/cosmgr.war /Library/Tomcat/webapps/.
-cp ./evc/evcmgr/target/evcmgr.war /Library/Tomcat/webapps/.
-cp ./svc/svcmgr/target/svcmgr.war /Library/Tomcat/webapps/.
-ls -l /Library/Tomcat/webapps/*.war
+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/Tomcat/bin/startup.sh
+#echo ... starting tomcat
+#$LIBRARY/bin/shutdown.sh
+#$LIBRARY/bin/startup.sh