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

Stefan Geith typo3dev2010.nospam1 at geithware.de
Mon Nov 15 12:48:29 CET 2010


Am 31.10.2010 08:49, schrieb Christian Opitz:
> i'm very interested in a solution for that problem too. In other
> applications like Zend Framework I've seen the possibility to define an
> environment and environment based settings. With that approach it's even
> possible to define your environment in the htaccess:
>
> #.htaccess:
> SetEnv TYPO3_ENV development
>

Don't forget to set die Env-Variable for CLI-Scripts (Scheduler) too:
     export TYPO3_ENV="development"; /usr/bin/php 
/var/www/.../typo3/cli_dispatch.phpsh scheduler

/Stefan


> //index.php
> defined('TYPO3_ENV')
> || define('TYPO3_ENV', (getenv('TYPO3_ENV') ? getenv('TYPO3_ENV') :
> 'production'));
>
> //localconf.php
> $TYPO3_CONF_VARS['ENV']['development']['EXT']['extList'] = ...
> $TYPO3_CONF_VARS['EXT']['extList'] = ...
>
> TYPO3 would then just need to merge the settings.
>
> Cheers,
> Christian
>
> Am 28.10.2010 10:33, schrieb Stefan Geith:
>> Am 28.10.2010 10:19, schrieb Steffen Müller:
>>> Summing up our goal is:
>>> We are looking for a place to configure stuff _after_ localconf.php and
>>> _before_ extensions get loaded.
>>> The goal is to have a (foolproof) control of these setting:
>>> $TYPO3_CONF_VARS['EXT']['extConf']
>>> $TYPO3_CONF_VARS['EXT']['extList']
>>> $TYPO3_CONF_VARS['EXT']['extList_FE']
>>>
>>> Looking at config_default.php, it does not exist. Nicos patch seems to
>>> be a solution. IMHO it seems others might also find it useful,
>>
>> +1
>>
>> Waiting for this quite some time ;)
>>
>> /Stefan
>>
>
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev






More information about the TYPO3-dev mailing list