3 ms·
generally environment variables are set with ALL_CAPS keys and underscores. Not sure if this is a bash hold over to differentiate ENV_VAR vs local reg_var or l
by virtue3 3y ago
generally environment variables are set with ALL_CAPS keys and underscores.
Not sure if this is a bash hold over to differentiate ENV_VAR vs local reg_var or like an os/global constant naming hold over.
Generally if you call "env" on your cmd line (all of my)/most keys are ENV_VAR capitalized.
- saghm 3y agoIs production going to be the name of a variable or a value? Given that you can't be running in more than one place at once, I don't see why you'd have an env var like PROD=true instead of something like STAGE=prod, since otherwise you need to decide what to do if you have both PROD=true and DEV=true. Environmental variable values certainly don't have to be all caps, so I don't think you're explanation makes sense.