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
feat: new environment variable (storage path) #2993
Conversation
Run |
I'm working online using github web-ui, I did not even check out the repo... |
gotcha! thanks :) |
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.
Thanks @osher you 🎸
nonono - thank you. So, the merge to P.S |
I need to check what's happening here #2984 and release only takes 1 min on my side. |
It's ok, I saw the situation, we'll wait patiently. Meanwhile - we found keep up the good work! |
Oh yeah, :) I forgot to mention that. Let me know if works fine for you so far. |
The next level is an env-var to control the log-path... BTW - if I may digress,
If I'm smart enough to design the config-tree without any arrays (which you have!) - I can inject any value anywhere in the tree using CLI switches or env-vars and keep things readable. It's VERY useful for docker containers and ad-hock executions. make it feel like zero-config even when you actually pass the configs to CLI switches...
Mind that it requires tollerance for coresion of number from strings (because env-vars and cli-switches are by definition strings). Just saying, for your consideration 😀 -- Oh. Right. Another trick I've seen but never used myself is support an env-var like -- Mmm. baybe this is not the place for such a discussion. LMK if you want me to put it as issues |
ok, message received :) let me some days to digest, these days I'm busy here https://nodecongress.com/ as speaker 😊 |
well!! good luck! can you just say if you have something up the sleve for an env for the log path? |
In v6 we don't have arrays anymore for logs, I've removed them because does not make sense nowadays. Anyway your idea seems something I've heard #1681 before, I also into the idea that env variables helps a lot in eg: Docker etc I had others ideas that might conflict with this one, like use a object schema to validate the config file (like yarn +v2 is doing with Let me digest more this when my brain get more relaxed. Feel free to remind me over time, I usually get distractec with so many open topics, or maybe better open a discussion so I can tag it correctly. |
Just my 2 cents... everything being discussed here related to configuration seems like a perfect use case for using the config package. You can specify config by file, environmental variable, command line, or all of the above and it handles the merging. |
@edclement Thanks for the comment 😄 I did mention the So whenever I use it I combine it with But that's just me and my fanatic approach towards slim deliveries... both |
Follow up of #2199 in v5