Answer the question
In order to leave comments, you need to log in
Why is the .env file not pushed to git?
I started the project in git, all the files were pushed except .env.local , this file was registered in .gitignore , and in git status it was clear that this file was supposedly ready to send everything. How to solve the problem?
Answer the question
In order to leave comments, you need to log in
It's just not a problem.
The git should be present only .env.example
with examples of settings.
The rest .env
of the files, firstly, contain critical data (at least logins, passwords from db), and secondly, they depend on the environment and may differ on prod, dev, and for each programmer in the team locally.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question