|
From: Jens Ø. P. <oe...@gm...> - 2013-12-12 10:08:36
|
Hi,
The AutoDeploymentTrigger ($EXIST_HOME/src/org/exist/repo/AutoDeploymentTrigger.java) "Installs any application which does not yet exist in the database," so the behaviour you have is to be expected. See also conf.xml:
<!--
! AutoDeploymentTrigger will install any .xar application package it finds
! in the autodeploy directory unless the application has already been installed
! in the db. -->
On line 78 of the AutoDeploymentTrigger.java, however, someone seems to have thought about your (very valid) use case, but only in a TODO about checking version numbers.
Unless version numbers are checked, there will be no way of upgrading apps - the xars in autodeploy from the initial installation would overwrite any new installs upon restart. The problem is, I guess, that there is no generally recognised numbering scheme for xar app versions.
Jens
On 09 Dec 2013, at 13:20, Anders Bruun Olsen <ab...@ds...> wrote:
> Hi guys,
>
> I am just starting out with making apps in eXist and I have a question about xar-files and autodeploy.
> I provision and configure servers automatically, and my eXist installation is thus also supposed to be automatically installed and setup. That part I have down, thanks to earlier entries to this list. My problem is that I have made an app in eXide and chosen download/application. This gives me a xar-file. My config management (CM) agent puts this file in the autodeploy dir, and eXist then installs in when started. So far so good. Now I make some changes to my app on my development machine, change the version number in expath-pkg.xml, download the new xar, distribute that with CM and restart eXist. Unfortunately the changes don't get deployed. The old version of the app still exists in the database. Is there a trick to rolling out new versions of xar-files?
>
> --
> Anders Bruun Olsen
> It-ansvarlig
> Det Danske Sprog- og Litteraturselskab
> (Society for Danish Language and Literature)
> ------------------------------------------------------------------------------
> Sponsored by Intel(R) XDK
> Develop, test and display web and hybrid apps with a single code base.
> Download it for free now!
> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk_______________________________________________
> Exist-open mailing list
> Exi...@li...
> https://lists.sourceforge.net/lists/listinfo/exist-open
|