github - Managing a Yii app with Git -
if have public git repository yii app. i'm wondering how keep db config settings private? can't ignore whole file.
create second ignored config , merge results:
$config=require_once(dirname(__file__).'/protected/config/main.php'); $configignored=require_once(dirname(__file__).'/protected/config/ignored.php'); require_once($yii); $config = cmap::mergearray($config, $configignored); yii::createwebapplication($config)->run();
Comments
Post a Comment