[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1239: Added utility script which copies the dhis.war file from the portal, updates the dhis-live packag...

revision-diff.txt (522 Bytes)

This is what I do as well for testing. Mind you all this time I’ve been lazy to write a script - endless rounds of bash ‘history | grep dhis’ instead. Thanks.

BTW has anybody tried out the deb package builder yet? I haven’t had any feedback. Its also a very quick way to take a build and deploy/undeploy onto tomcat in ubuntu.

Bob.

···

2009/12/17 noreply@launchpad.net


revno: 1239

committer: Lars Helge Oeverland larshelge@gmail.com

branch nick: trunk

timestamp: Thu 2009-12-17 10:06:48 +0100

message:

Added utility script which copies the dhis.war file from the portal, updates the dhis-live package and starts it. Live and source code home folder is configurable.

added:

dhis-live/util/script/live.sh

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.

=== added file ‘dhis-live/util/script/live.sh’

— dhis-live/util/script/live.sh 1970-01-01 00:00:00 +0000

+++ dhis-live/util/script/live.sh 2009-12-17 09:06:48 +0000

@@ -0,0 +1,10 @@

+#!/bin/sh

+DHIS2_LIVE_HOME=~/development/dhis2-live

+DHIS2_SOURCE_HOME=~/development/src/dhis2

+rm -rf ${DHIS2_LIVE_HOME}/webapps/dhis

+mkdir ${DHIS2_LIVE_HOME}/webapps/dhis

+unzip ${DHIS2_SOURCE_HOME}/dhis-2/dhis-web/dhis-web-portal/target/dhis.war -d ${DHIS2_LIVE_HOME}/webapps/dhis

+java -jar ${DHIS2_LIVE_HOME}/dhis2-live.jar


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Hi Bob,

I would have tested it sadly I’m not a Ubuntu’er nor a deb fan, but I like the dhis2-live… Gimme an rpm and I’ll test it! :wink: or even better → just a ymp file from the dhis2.org that I can click on everything gets installed!!

···

Regards,
Saptarshi PURKAYASTHA
Director R & D, HISP India
Health Information Systems Programme

My Tech Blog: http://sunnytalkstech.blogspot.com

You Live by CHOICE, Not by CHANCE

2009/12/17 Bob Jolliffe bobjolliffe@gmail.com

This is what I do as well for testing. Mind you all this time I’ve been lazy to write a script - endless rounds of bash ‘history | grep dhis’ instead. Thanks.

BTW has anybody tried out the deb package builder yet? I haven’t had any feedback. Its also a very quick way to take a build and deploy/undeploy onto tomcat in ubuntu.

Bob.

2009/12/17 noreply@launchpad.net


revno: 1239

committer: Lars Helge Oeverland larshelge@gmail.com

branch nick: trunk

timestamp: Thu 2009-12-17 10:06:48 +0100

message:

Added utility script which copies the dhis.war file from the portal, updates the dhis-live package and starts it. Live and source code home folder is configurable.

added:

dhis-live/util/script/live.sh

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.

=== added file ‘dhis-live/util/script/live.sh’

— dhis-live/util/script/live.sh 1970-01-01 00:00:00 +0000

+++ dhis-live/util/script/live.sh 2009-12-17 09:06:48 +0000

@@ -0,0 +1,10 @@

+#!/bin/sh

+DHIS2_LIVE_HOME=~/development/dhis2-live

+DHIS2_SOURCE_HOME=~/development/src/dhis2

+rm -rf ${DHIS2_LIVE_HOME}/webapps/dhis

+mkdir ${DHIS2_LIVE_HOME}/webapps/dhis

+unzip ${DHIS2_SOURCE_HOME}/dhis-2/dhis-web/dhis-web-portal/target/dhis.war -d ${DHIS2_LIVE_HOME}/webapps/dhis

+java -jar ${DHIS2_LIVE_HOME}/dhis2-live.jar


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Hi Bob, sorry for the late reply, I very much would like to try it out. Excuse my lack of knowledge but where can I find the DEBIAN/control file?

Lars

···

On Thu, Dec 17, 2009 at 12:08 PM, Bob Jolliffe bobjolliffe@gmail.com wrote:

This is what I do as well for testing. Mind you all this time I’ve been lazy to write a script - endless rounds of bash ‘history | grep dhis’ instead. Thanks.

BTW has anybody tried out the deb package builder yet? I haven’t had any feedback. Its also a very quick way to take a build and deploy/undeploy onto tomcat in ubuntu.

Hi Lars

It should all be there under tools/dhis2deb/. The control file is then dhis2/DEBIAN/control but you shouldn’t need to play with this unless you want to customize it further. Just use the makefile as per the Readme.txt.

Cheers
Bob

···

2009/12/21 Lars Helge Øverland larshelge@gmail.com

On Thu, Dec 17, 2009 at 12:08 PM, Bob Jolliffe bobjolliffe@gmail.com wrote:

This is what I do as well for testing. Mind you all this time I’ve been lazy to write a script - endless rounds of bash ‘history | grep dhis’ instead. Thanks.

BTW has anybody tried out the deb package builder yet? I haven’t had any feedback. Its also a very quick way to take a build and deploy/undeploy onto tomcat in ubuntu.

Hi Bob, sorry for the late reply, I very much would like to try it out. Excuse my lack of knowledge but where can I find the DEBIAN/control file?

Lars

Ah OK, should have spotted that (updated Readme to say dhis2/DEBIAN/control). When doing “make update” I get some error:

larshelg@larshelg-laptop:~/development/src/dhis2/tools/dhis2deb$ make update

cp ~/development/src/dhis2/dhis-2/dhis-web/dhis-web-portal/target/dhis.war dhis2/dhis.war
cd dhis2; zip -f dhis.war ./WEB-INF/classes/log4j.properties
make: *** [update] Error 12

Should I ignore this…?

···

2009/12/21 Bob Jolliffe bobjolliffe@gmail.com

Hi Lars

It should all be there under tools/dhis2deb/. The control file is then dhis2/DEBIAN/control but you shouldn’t need to play with this unless you want to customize it further. Just use the makefile as per the Readme.txt.

Cheers
Bob