A
A
akdes2017-06-23 14:42:02
git
akdes, 2017-06-23 14:42:02

How to distinguish between .env in Laravel for Live and Dev systems?

Good afternoon.
There is a project, for devs own settings, for live others .env. How to manage .env files so that during deployment the dev file does not go live and vice versa?
Same question for docker-compose.yml
Thanks

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Aksentiev, 2017-06-23
@akdes

https://laravel.com/docs/5.4/configuration#environ...
Configs for different environments should be different in principle, different files.
Yes, and in general, you have to try to screw up like that.
dev and prod cannot intersect at all, especially since the configs get mixed up.
They only have a common repository in the git, everything else is different. And it's also necessary to be able to store configs in the git.

P
pantagruel964, 2017-06-23
@pantagruel964

What about .gitignore?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question