Getting your environments just RIGHT! |
As mentioned in the docs, the Config class will load the global config file first, followed by the ENVIRONMENT file. So, if you call $this->config->load('email') (or just $this->load->library('email')) when you have the following files:
/application/config/email.php /application/config/production/email.php It will load /application/config/email.php first, then load the production file, overwriting any duplicated settings with the production values. So, if your production file only includes the settings which need to change for that environment, it doesn't take much effort to figure out what is changing in each environment. |
Messages In This Thread |
Getting your environments just RIGHT! - by BrendanRehman - 08-23-2015, 04:16 PM
RE: Getting your environments just RIGHT! - by PaulD - 09-01-2015, 05:37 AM
RE: Getting your environments just RIGHT! - by mwhitney - 09-01-2015, 12:27 PM
|