Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Could you encapsulate the config to a file within your build step and set the env vars from that? Like a “remember to source <envfile> before make dev” or better, if the env isn’t set in make properly (flag), have make source it.

Environment vars are great with defaults for configuring codebases. They are designed for runtime. Build time flags can read the current environment but if your build pipeline requires custom variables you need a “dictionary” of sensible defaults that will spin up a local environment so that onboarding is as easy as git clone && make dev.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: