openfoodfacts / open-prices

An open database of prices 🧾💸💰🏷️🤑🍽️
https://prices.openfoodfacts.org
GNU Affero General Public License v3.0
40 stars 13 forks source link

Rename dotenv to .env.examples #443

Closed BhuwanPandey closed 2 weeks ago

BhuwanPandey commented 1 month ago

I think it would better to rename .env to .env.examples and untrack .env

raphael0202 commented 3 weeks ago

Hello @BhuwanPandey, Why so? We use .env in all our projects to be able to launch projects as-it and ready for development, without further configuration. If you need to tweak specific envvar, you can use a direnv file: https://direnv.net/.

BhuwanPandey commented 3 weeks ago

Hello @BhuwanPandey, Why so? We use .env in all our projects to be able to launch projects as-it and ready for development, without further configuration. If you need to tweak specific envvar, you can use a direnv file: https://direnv.net/.

yes, we are using .env and will be using .env but i mean to say that instead of displaying .env on git publicly , i think it would be better to create .env.example which contains all variable just like .env and untrack .env .
and The .env.example file is just an example of the .env file. It is not used by the app.

raphael0202 commented 3 weeks ago

The .env.example file is just an example of the .env file. It is not used by the app.

The .env is used by the app when you use docker compose (which is the recommended way of launching the app): docker compose automatically load envvar from .env file.