icecoder/ICEcoder

Config file name issue after domain change

Closed this issue · 2 comments

i have config-dev-domain.php on dev domain

After site is online and change from dev domain to production
icecoder looks forconfig data in config-production-domain.php

Is there any way to make this allways same name...
so no need to change everytime.

or any other idea..

That's an interesting requirement. You could change this line to set your own file name:

$settingsFile = 'config-' . $username . str_replace(".", "_", str_replace("www.", "", $_SERVER['SERVER_NAME'])) . '.php';

ok thx.. :)