DEV Community

Jochen Lillich
Jochen Lillich

Posted on • Originally published at geewiz.dev on

dotenv and direnv for better developer QoL

A RubyTapas tutorial taught me the difference between the dotenv and direnv tools. While they have significant overlap, they complement each other quite nicely. dotenv simplifies both development and production ops by importing environments variables either from a .env file or the application hosting platform. direnv on the other hand augments the dev environment even further; not only can it add dev-only variables, but also modify shell settings like extending $PATH on a per-project basis.

Top comments (0)