Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter and Git, how to manage config files.
#5

[eluser]CroNiX[/eluser]
@Bramme, in your index.php, just define the environment based on $_SERVER['HTTP_HOST'] with a default of 'production' (most restrictive error reporting etc) so it's dynamic. This is what the ENVIRONMENT is designed for and makes life a lot easier.

I use git on all projects and this works great! If you are worried about development files in the repo, you can use .gitignore and don't include them in git. Also, you can use a private repo for development and only push things to a public repo when they are stable, so no one will ever see that stuff. Or, use stable/development branches where the public only has access to the stable branch.


Messages In This Thread
CodeIgniter and Git, how to manage config files. - by El Forum - 02-21-2012, 04:05 AM
CodeIgniter and Git, how to manage config files. - by El Forum - 02-21-2012, 05:15 AM
CodeIgniter and Git, how to manage config files. - by El Forum - 02-21-2012, 05:59 AM
CodeIgniter and Git, how to manage config files. - by El Forum - 02-21-2012, 06:49 AM
CodeIgniter and Git, how to manage config files. - by El Forum - 02-21-2012, 10:33 AM
CodeIgniter and Git, how to manage config files. - by El Forum - 02-21-2012, 11:55 AM
CodeIgniter and Git, how to manage config files. - by El Forum - 02-21-2012, 12:01 PM
CodeIgniter and Git, how to manage config files. - by El Forum - 02-21-2012, 09:14 PM
CodeIgniter and Git, how to manage config files. - by El Forum - 02-28-2012, 02:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB