Y
Hacker News
new
|
ask
|
show
|
jobs
A tool to verify the presence of environment variables before running a process
(
github.com
)
2 points
by
arvindell
1566 days ago
1 comments
theamk
1566 days ago
I don't think separate tool is a good idea for this.. that's what assertions in your main/config file are for. All you need is just 1 line:
assert os.getenv('DATABASE_URL'), "You forgot to set DATABASE_URL"
and as a bonus other developers get this check too, even if they have no idea about this tool.
link