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

Env vars get "captured" at compile time #9

Open
cjsauer opened this issue Jan 8, 2018 · 0 comments
Open

Env vars get "captured" at compile time #9

cjsauer opened this issue Jan 8, 2018 · 0 comments

Comments

@cjsauer
Copy link

cjsauer commented Jan 8, 2018

Hey there,

I'm using env/def to define some env vars with defaults, e.g.

(env/def SERVER_PORT "8080")

I'm running into some trouble using AOT compilation in my boot build task. It seems that once I've AOT'd and uberjar'd my project, these environment definitions get "baked in", if that makes sense. Attempting to set them as follows always results in the default value for the SERVER_PORT var:

SERVER_PORT=9000 java -jar target/my-project.jar

in my logs:

Starting server on port 8080

I'm guessing that I may be misunderstanding the use of env/def, and that this is maybe intended behavior...any help would be much appreciated.

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