-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Description
Currently properties such as ds.serverName
and ds.port
must be defined in the properties file that is passed as system property basil.configurationFile
. If these properties are passed on startup, the application does not seem to pick them up, see server initialization:
In some instances, such as containerized environments like DC/OS, providing configuration files dynamically is not always handy. In such cases, setting environment variables is a preferable way. For example, if I set env variables DB_HOST
and DB_PORT
, then I could execute BASIl like this:
java -jar -Dbasil.configurationFile=basil.ini -Dds.serverName=${DB_HOST} -Dds.port=${DB_PORT} basil-server.jar -p 8080
where the ds.serverName
and ds.port
values would override those in basil.ini
, if at all present.
It would be nice to have such support.