Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Parrot_NTheKing
· 4y ago · 0 comments
One pattern that we use at our company is that we have multiple env files, and we launch programs using `run_with_config <config-file> <command>`. The script loads environment variables from config-file and then launches command.
Comments
[–]
zach_garwood
4y ago
I like to do something similar with my personal projects: `set -o allexport && source /ect/environment && set +o allexport; command`