Welcome Guest, Not a member yet? Register   Sign In
Retrieving configs from a file other than config.php
#11

[eluser]merik[/eluser]
[quote author="Jan from Hamburg" date="1364288056"]Why not just feed the .gitignore-file like
Code:
*/application/config/database.php
*/config/development
*/logs/log-*.php
*/logs/!index.html
*/cache/*
*/cache/!index.html
and let an example-file in the folder like database_example.php or config_example.php with all needed info..[/quote]

This is what I ended up doing. This works for the DB stuff, but not for the site config stuff. Each of us is using different configs for their own local instance ( for example, they host it locally as mydomain.com or mydomain.net, and modify their hosts file so that URL will refer to 127.0.0.1), so the configs like the site's base name, etc are not identical.

In the end, I wish there was a way to load configs from an external file, say from within index.php; but there is none. Sad

Thanks anyways. These are all very good comments and suggestions.


Messages In This Thread
Retrieving configs from a file other than config.php - by El Forum - 03-23-2013, 08:23 AM
Retrieving configs from a file other than config.php - by El Forum - 03-23-2013, 08:37 AM
Retrieving configs from a file other than config.php - by El Forum - 03-24-2013, 07:32 AM
Retrieving configs from a file other than config.php - by El Forum - 03-24-2013, 08:06 AM
Retrieving configs from a file other than config.php - by El Forum - 03-24-2013, 08:07 AM
Retrieving configs from a file other than config.php - by El Forum - 03-24-2013, 11:35 PM
Retrieving configs from a file other than config.php - by El Forum - 03-25-2013, 04:50 PM
Retrieving configs from a file other than config.php - by El Forum - 03-25-2013, 05:36 PM
Retrieving configs from a file other than config.php - by El Forum - 03-25-2013, 08:53 PM
Retrieving configs from a file other than config.php - by El Forum - 03-26-2013, 01:54 AM
Retrieving configs from a file other than config.php - by El Forum - 03-26-2013, 12:31 PM
Retrieving configs from a file other than config.php - by El Forum - 03-26-2013, 12:49 PM
Retrieving configs from a file other than config.php - by El Forum - 03-26-2013, 03:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB