Welcome Guest, Not a member yet? Register   Sign In
New warnings after upgrading to v 2
#1

[eluser]djeetee[/eluser]
Fellow codeigniters,

I just upgraded from v 1.7.2 to 2.01 (going through all the versions in-between). I have noticed the following new warnings in my log:

Config for development environment is not found. Trying global config.

Database config for development environment is not found. Trying global config.

Any clues on what they mean?

thanks
#2

[eluser]John_Betong_002[/eluser]
Take a look here:

http://ellislab.com/codeigniter/user-gui...ments.html

and here

http://ellislab.com/codeigniter/user-gui...vironments



Quote:Note: CodeIgniter always tries to load the configuration files for the current environment first. If the file does not exist, the global config file (i.e., the one in application/config/) is loaded. This means you are not obligated to place all of your configuration files in an environment folder − only the files that change per environment.

 
I think the development and production folders should have been created in the initial setup.

I am curious to know if not having these paths is bad for performance.
 
 
#3

[eluser]djeetee[/eluser]
Hey John, sorry for the late response. Somehow I have missed reading that whole section about creating folders for the various environments!

thanks for pointing that out to me.

Not sure about the performance hit. Essentially CI is doing a file open in the env-specific folder and if it doesn't exist it will do another one in the top config folder. Since the docs say that not all the config files have to exist in the env-specifc folder, i'd say CI is doing the double-hit anyways. not sure what the impact is though.

for zero impact, either don't use env folders at all or make sure all config files exist in them!

thanks again

g




Theme © iAndrew 2016 - Forum software by © MyBB