dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #03753
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1243: Minor fix
------------------------------------------------------------
revno: 1243
committer: Lars Helge Oeverland <larshelge@xxxxxxxxx>
branch nick: trunk
timestamp: Thu 2009-12-17 12:46:17 +0100
message:
Minor fix
modified:
resources/util/tomcat
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription.
=== modified file 'resources/util/tomcat'
--- resources/util/tomcat 2009-12-17 11:33:37 +0000
+++ resources/util/tomcat 2009-12-17 11:46:17 +0000
@@ -1,5 +1,8 @@
#!/bin/sh
+
TOMCAT_LOCAL=/usr/local/tomcat
+DHIS2_SOURCE_HOME=~/development/src/dhis2
+
case $1 in
start)
${TOMCAT_LOCAL}/bin/startup.sh
@@ -14,6 +17,12 @@
log)
tail -f ${TOMCAT_LOCAL}/logs/catalina.out
;;
+update)
+ sudo rm -rf ${TOMCAT_LOCAL}/webapps/dhis
+ sudo rm ${TOMCAT_LOCAL}/webapps/dhis.war
+ sudo cp ${DHIS2_SOURCE_HOME}/dhis-2/dhis-web/dhis-web-portal/target/dhis.war ${TOMCAT_LOCAL}/webapps/
+ echo Tomcat updated with latest WAR from src code
+ ;;
esac
exit 0