aboutsummaryrefslogtreecommitdiffstats
path: root/deploy.sh
diff options
context:
space:
mode:
authorbotte <b.otte@cablelabs.com>2015-10-11 15:26:40 +0000
committerbotte <b.otte@cablelabs.com>2015-10-13 17:42:28 +0000
commitc802bc1e792a35f5a89a97aedd353f1ff4972a5e (patch)
tree8038148375dfa63dedabe6c64dea6057d868d2be /deploy.sh
parentb785b70b994f7910635195b40e8ce96ac5e0effe (diff)
All modified files to support the UPDATE CRUD operation. Also a few general tweaks.
Change-Id: Ife64166f2d572ee94f2c393af9ae66cfefa62551
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