numtide / devshell

Per project developer environments
https://numtide.github.io/devshell/
MIT License
1.22k stars 87 forks source link

env var improvements #267

Open happysalada opened 1 year ago

happysalada commented 1 year ago

Is your feature request related to a problem? Please describe.

in projects, there are often different environments for dev, staging and prod for example. By environment I mean a collection of env vars that together represent the settings to run a program on a machine. There are various reasons why different environments should be available on local . (you might want to connect to the staging database instead of your local dev one...). env vars also raise the concern of committing secrets to the repo

Describe the solution you'd like

the alternative is to maintain several .env files and use dotenv-cli to generate environments for each commands. You can use a command to generate the proper environment. You don't commit the .env files you create since they contain secrets. But this workflow works at the moment.

Additional context

I think most teams need a workflow with different environments, but I'd be happy to describe in more details any part of the process that seems foreign.

PS: thanks again for taking the time to make this project. I've been using this shell everywhere since as long as I've known it.