Open Sergio-Daniel-Pires opened 1 month ago
Should we hide the .env file using .gitignore?
You need .env file for Common .env things, like database connections, bot name, production label (prod or Dev), but you need to separate sensitive data like password and Secrets. Working on a real projects, we use "Github Secrets" for overwrite .env on build, but for now you Just need a separated file: .env (normal env, not Secrets) secret.env (or other name, for Secrets things) And create a python file to get secrets, like this: https://stackoverflow.com/questions/41546883/what-is-the-use-of-python-dotenv