-
Notifications
You must be signed in to change notification settings - Fork 3
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
Support system property configuration #167
Conversation
return create(System.getenv("EC_TOKEN")); | ||
return create( | ||
CONFIG | ||
.get("ec.token") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does this work? Should we throw in a default configuration file for example. I think this is a bit ambiguous as to what to do. Maybe throw a config file into the resources and if not built create a default one for them. Something needs to be done so before installation there's a way to figure out how to set it up, rather that be in docs or some other example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't read from files yet, it just adds system properties as per #106. So you can configure the token by setting the EC_TOKEN
environment variable, or the ec.token
system property.
We do need a getting started guide, but imo that's outside the scope of this issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah okay, so this is just the beginning to implementing a configuration file, or rather the implementation to provide support for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's the beginning of enabling configuration to happen in ways other than just environment variables, yes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then this is probably good for now, it definitely needs work in documentation and examples for installation. I'll put that in the issue list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#108 exists for documentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see configuration specification. Should we add that as a checklist item.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or leave a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, I'll leave a comment there and accept this PR through.
Fixes #106