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

I actually back-ported the CI_ENV check to CI v2.2 in Bonfire so I could use this on my server. I then added the SetEnv call to a .conf file loaded by my servers (with the environment set appropriately to that server).

As an additional step, I added sub-folders in the /application/config/ directory to my project's ignore filter, so individual developers' config files don't get included in the site's repository. If necessary, the config file(s) can always be version-controlled in a separate repository.

Folder locations in the application and system directories should be relative, so it would be unusual for those to change within the project from one person to the next (though you would probably want to manage the paths in the individual development server configurations).

I do like dmyers' steps of checking the CI_ENV value for each box as part of the deploy scripts, but I prefer to keep those SetEnv calls in Apache's conf directory rather than my project's .htaccess file.
Reply


Messages In This Thread
RE: establishing a local configuration for each developer, dev server, production... - by mwhitney - 12-31-2014, 10:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB