dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #47736
Re: dhis2.conf
I believe you can use ${...} environment expressions in
persistence.xml/hibernate.cfg.xml, so It would make sense if it worked in
hibernate.properties (which is basically just an alternative
representation).
Paulo: you're right. A few versions ago we did move from the
Hibernate-specific config format to a generic one which includes
non-hibernate config properties as well (dhis.conf).
As Lars says, this would be a useful feature to continue supporting for
sure.
On Wed, Nov 16, 2016 at 10:33 AM, Lars Helge Øverland <lars@xxxxxxxxx>
wrote:
>
> I am not 100% sure about that, but it has never been the intention for
> that to work.
>
> regards,
>
> Lars
>
> On Wed, Nov 16, 2016 at 10:26 AM, Paulo Grácio <paulogracio@xxxxxxxxx>
> wrote:
>
>> This use to work, have you change how configurations are loaded?
>>
>> -- Paulo
>>
>> On Wed, Nov 16, 2016 at 10:02 AM Lars Helge Øverland <lars@xxxxxxxxx>
>> wrote:
>>
>>> Hi Paulo,
>>>
>>> at the moment, no. This will be a useful feature though. Will write an
>>> issue.
>>>
>>> Could also be a task for external developers ;)
>>>
>>> best regards,
>>>
>>> Lars
>>>
>>> On Tue, Nov 15, 2016 at 11:23 PM, Paulo Grácio <paulogracio@xxxxxxxxx>
>>> wrote:
>>>
>>> Hi, is it possible to use environment variables on dhis.conf
>>> https://github.com/pgracio/dhis2-docker/blob/master/conf/dhis.conf#L8
>>>
>>> It's failing to start with this error
>>>
>>> FATAL: database "${POSTGRES_DB}" does not exist
>>>
>>>
>>> -- Paulo
>>>
>>>
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~dhis2-devs
>>> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>> More help : https://help.launchpad.net/ListHelp
>>>
>>>
>>>
>>>
>>> --
>>> Lars Helge Øverland
>>> Lead developer, DHIS 2
>>> University of Oslo
>>> Skype: larshelgeoverland
>>> lars@xxxxxxxxx
>>> http://www.dhis2.org <https://www.dhis2.org/>
>>>
>>>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> lars@xxxxxxxxx
> http://www.dhis2.org <https://www.dhis2.org/>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help : https://help.launchpad.net/ListHelp
>
>
--
Halvdan Hoem Grelland
Software developer, DHIS 2
University of Oslo
http://www.dhis2.org <https://www.dhis2.org/>
References