Timeline for Enforcing set environment variables
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 10, 2020 at 13:24 | history | edited | CommunityBot |
Commonmark migration
|
|
Feb 7, 2019 at 12:30 | comment | added | inf3rno | I mean pulling in settings from a non-related random config module is not so different from using global variables in your code. I bet you have a hard time to collect which module needs which config variables and document all of that... | |
Feb 7, 2019 at 11:40 | comment | added | inf3rno | Why not use dependency injection instead of pulling in these variables with require from random modules? | |
Jul 24, 2015 at 8:56 | comment | added | Dan |
You just need to make sure that you do this and accept a callback (or continue to use highland streams) before the rest of your program continues. Or you could use dotenv . ;-)
|
|
Jul 24, 2015 at 8:50 | comment | added | Dan | FYI, this can be done asynchronously. You could use async or highland. I've written an example, but this isnt tested. This would look even nicer with ES6 fat arrows. | |
Jul 23, 2015 at 20:31 | comment | added | rolfl | See follow-on question Mapping file data to environment variables | |
Jul 23, 2015 at 20:18 | vote | accept | rolfl | ||
Jul 23, 2015 at 19:31 | answer | added | Ismael Miguel | timeline score: 7 | |
Jul 23, 2015 at 16:43 | answer | added | nhgrif | timeline score: 6 | |
Jul 23, 2015 at 16:25 | history | asked | rolfl | CC BY-SA 3.0 |