[TYPO3-dev] Deploy localconf.php from test to live system

Sebastian Fischer sf at marketing-factory.de
Wed Oct 27 16:58:07 CEST 2010


Am 27.10.2010 16:30, schrieb Steffen Müller:
> Hi,
>
> I am looking for a smooth way to deploy localconf.php.
>
> My situation is:
> 1. some settings are system specific, e.g. different lists of installed
> extensions and DB settings for live and testing)
> 2. some settings are the same on all systems
>
> I use git for rolling out changes.
>
> Solution A:
> Using git for the rollout, also including localconf.php in git.
> All system specific settings are in ext_localconf.php of a dedicated
> configuration extension. This extension overrides the settings of
> localconf.php and is not deployed with git (via gitignore).
>
> Drawback: $TYPO3_CONF_VARS['EXT']['extList'] cannot be covered by this
> scenario and needs manual action.
>
> Solution B:
> Keep localconf.php out of git and change settings manually on each
> rollout - which is the drawback here.
>
> I'd prefer to use solution A. But I don't see a way here to have
> separate entries for $TYPO3_CONF_VARS['EXT']['extList'].
>
> Do you have any ideas?
>

Option 3

include_once($your_path . '/' .  php_uname() . '_localconf.php');

This machine depending localconf can contain settings only needed for 
the certain machine.

Greetings
Sebastian




More information about the TYPO3-dev mailing list