Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow environment variables to be injected into configuration file variables #23

Open
KamBha opened this issue Jan 9, 2019 · 1 comment

Comments

@KamBha
Copy link

KamBha commented Jan 9, 2019

Currently, you cannot load environment variables into a config file. This forces you to setup different configurations even if the configuration only needs minor modifications (eg server names)

It would be nice if we could specify environment variables into the config file.

It looks like drop wizard supports this idea:-

https://www.dropwizard.io/0.8.0/docs/manual/core.html#environment-variables

@stickfigure
Copy link
Contributor

That would be cool. But there is also another way - GWizard uses the Dropwizard configuration library under the covers, so it allows the same mechanisms for setting properties. You can pass in values as java propeties:

https://github.com/gwizard/gwizard/tree/master/gwizard-config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants