Skip to content

Comment on Where .env Went Wrongparent

Comments

Maybe. How does the application unify different environment variables? Those inherited by the shell, those read from .profile, those set in the process that start the application (be that ./run.sh, a nodejs script, systemd etc...).

Why would it want to? I'd say what you're asking for is actually a code smell. An app should not have a bazillion interlocking ways to be configured, unless there's a strong reason for this!

Why would it want to?

Because well behaved applications play nice with their host system.

I have a strong suspicion that you’re thinking about application configuration, not environment configuration.

It's not the app, it's the environment variables that have many ways to be configured.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.