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

use env variable for host in swagger_inject #21

Open
mlankenau opened this issue Dec 20, 2017 · 0 comments
Open

use env variable for host in swagger_inject #21

mlankenau opened this issue Dec 20, 2017 · 0 comments

Comments

@mlankenau
Copy link

mlankenau commented Dec 20, 2017

I really enjoy using maru in combination with maru_swagger. Great library!!
But I have a minor issue: I would like to use an environment var for the host (that is put into the swagger json). doing something like
host: System.get_env("HOST") || "localhost"
does not work. I guess the get_env will be called at compile time, since it is a macro.
Is there a known workaround?

Cheers
Marcus

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

1 participant