Welcome Guest, Not a member yet? Register   Sign In
establishing a local configuration for each developer, dev server, production...
#2

I believe this is handled right in CodeIgniter 3 already.

http://www.codeigniter.com/userguide3/ge...ments.html

In my .htaccess I only need to add "SetEnv CI_ENV sandbox"

Then CI will load the configs from that environment

http://www.codeigniter.com/userguide3/li...vironments

I have been using it for over a year (using CI 3) for each of my deployment (sandbox, dev, test, production, etc...) servers.

Then as part of each boxes deploy script it does a double check on the .htaccess CI_ENV value. (git pull, db stuff, htacces stuff, etc...)

Hope that helps
Reply


Messages In This Thread
RE: establishing a local configuration for each developer, dev server, production... - by dmyers - 12-30-2014, 06:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB