aider icon indicating copy to clipboard operation
aider copied to clipboard

.env.local

Open xmontero opened this issue 6 months ago • 0 comments

Issue

In relation to #219 I see it aider now supports a .env file (path modifiable by --env-file and AIDER_ENV_FILE). Documented here https://aider.chat/docs/config/dotenv.html

I wonder if we could consider adding the support for the .env.local hierarchy like in the symfony projects (references here for the symfony documentation https://symfony.com/doc/current/configuration.html and here for the dotenv loader https://github.com/symfony/dotenv )

This would allow to commit the .env with the main ENV variables of the project to the repo without committing the real API keys, onle the "suggestion" of the ENV vars we want/need. Then .env.local is git-ignored.

The reason why is that this .env and .env.local are shared between the "aider project" plus "the project being generated" in the same repo... so we should care about never committing the API keys, even by accident. Provided you'll be configuring the .env for the application itself, you commit that file from time to time.

PD: @paul-gauthier congrats for the great project!

Does this make sense?

Version and model info

No response

xmontero avatar Aug 02 '24 11:08 xmontero