VCS code duplication and subordinate

Marius B. Kotsbak marius at kotsbak.com
Mon Mar 11 18:33:44 UTC 2013


On 11. mars 2013 19:14, Sidnei da Silva wrote:
> On Mon, Mar 11, 2013 at 3:01 PM, Patrick Hetu <patrick.hetu at gmail.com
> <mailto:patrick.hetu at gmail.com>> wrote:
> 
>     > Sure, but how will it make sure that the service is restarted when
>     new content is found?
> 
>     In the python-django charm I'm using a timestamp variable (an idea
>     from someone on IRC) that triggers the reloading of the wsgi server
>     when configuration change.

Japp, that works for configuration changes (but I would rather use
revid/SHA1), but does not work from cron, as it is run outside the
hooks, and then can't access any Juju APIs.

--
Marius




More information about the Juju mailing list