yii2 - What is the difference between yii's configuration files *.php and *-local.php?
给我你的怀抱
给我你的怀抱 2017-05-16 13:13:32
0
1
632

What is the difference between main and main-local? Why are there local and non-local?

给我你的怀抱
给我你的怀抱

reply all(1)
给我你的怀抱

Local files are not stored in the git system, but non-local files must be stored in the git system. Therefore, non-local configuration files mainly store common configurations that are used in both development systems and production environments, while local configuration files write configurations corresponding to different environments. For example, the username and password for your database connection may be different in your development environment and production environment. Configuration information like this should not be placed in main.php, but should be placed in main. -local.php, so that the production environment and development environment have different configurations to work properly.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template