简体   繁体   English

为Typo3项目设置开发环境

[英]Set up development environment for Typo3 project

We have to set a fool development environment for the CMS Typo3 project. 我们必须为CMS Typo3项目设置一个傻瓜开发环境。 We are three developers who need to commit to git master branch and so on. 我们是三个开发人员,他们需要提交到git master分支等。 But how you all know - for typo3 is not so easy to work in team. 但是大家都知道-对于typo3来说,在团队中工作并不容易。 Cos we have different DB and a lot of things must be changed through the admin panel. 因为我们有不同的数据库,所以必须通过管理面板更改许多内容。

Maybe some have a thoughts about this? 也许有人对此有想法? Maybe someone have the same experience? 也许有人有相同的经历?

You can override all settings in the typo3conf/LocalConfiguration.php in the file typo3conf/AdditionalConfiguration.php . 您可以在typo3conf/AdditionalConfiguration.php文件中的typo3conf/LocalConfiguration.php中覆盖所有设置。 It is executed after the local configuration was calculated. 在计算本地配置后执行。

Just fill it with something like this: 只需用以下内容填充它:

<?php
    $GLOBALS['TYPO3_CONF_VARS']['DB']['host'] = 'localhost';
    $GLOBALS['TYPO3_CONF_VARS']['DB']['port'] = '33306';
    $GLOBALS['TYPO3_CONF_VARS']['DB']['user'] = 'myuser';
    $GLOBALS['TYPO3_CONF_VARS']['DB']['password'] = 's3cr3t';
    $GLOBALS['TYPO3_CONF_VARS']['DB']['database'] = 'myDB';

You can remove it from version control (or include a file in it, and remove that from version control), and fill it differently in each development environment. 您可以从版本控制中删除它(或在其中包含一个文件,然后从版本控制中删除它),并在每个开发环境中以不同的方式填充它。

Also, there were application contexts introduced in TYPO3 6.2, you can use them in conjunction with the AdditionalConfiguration.php . 另外,在TYPO3 6.2中引入了应用程序上下文,您可以将它们与AdditionalConfiguration.php结合使用。 Ticket for this topic . 此主题的门票

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM