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
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
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@gmail.com 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@lists.launchpad.net
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
This use to work, have you change how configurations are loaded?
– Paulo
On Tue, Nov 15, 2016 at 11:23 PM, Paulo Grácio paulogracio@gmail.com 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@lists.launchpad.net
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
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@gmail.com wrote:
– Paulo
This use to work, have you change how configurations are loaded?
On Wed, Nov 16, 2016 at 10:02 AM Lars Helge Øverland lars@dhis2.org 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@gmail.com 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@lists.launchpad.net
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 Helge Øverland
Lead developer, DHIS 2
University of Oslo
Skype: larshelgeoverland
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@dhis2.org wrote:
I am not 100% sure about that, but it has never been the intention for that to work.
regards,
Lars
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
–
On Wed, Nov 16, 2016 at 10:26 AM, Paulo Grácio paulogracio@gmail.com wrote:
– Paulo
This use to work, have you change how configurations are loaded?
On Wed, Nov 16, 2016 at 10:02 AM Lars Helge Øverland lars@dhis2.org 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
–
Lars Helge Øverland
Lead developer, DHIS 2
University of Oslo
Skype: larshelgeoverland
On Tue, Nov 15, 2016 at 11:23 PM, Paulo Grácio paulogracio@gmail.com 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@lists.launchpad.net
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
Halvdan Hoem Grelland
Software developer, DHIS 2
University of Oslo