[英]Best practice for syncing databases on deploy
In our projects we have three different instances of our typo3 websites (development, test, productive). 在我们的项目中,我们有三个不同的typo3网站实例(开发,测试,高效)。 We are using MySQL as Database.
我们正在使用MySQL作为数据库。
The development instance is on a different machine then test and productive. 开发实例位于另一台机器上,然后进行测试并具有生产效率。
If there are changes in the database we have to apply them by hand in all three instances. 如果数据库中有更改,我们必须在所有三个实例中手动应用它们。 this is not a very safe approach and i wanted to ask you if you can give me an advice on how to sync those databases (or specific tables of it).
这不是一个非常安全的方法,我想问一下您是否可以给我一些有关如何同步这些数据库(或其特定表)的建议。 The synchronisation has to be one way.
同步必须是一种方式。 So only from development to test, and from test to productive.
因此,只有从开发到测试,从测试到生产。
currenty we are deploying using an rsync script. 当前,我们正在使用rsync脚本进行部署。
I found some solutions to sync the databases like mysql replication but i dont know if thats the best approach for my situation. 我找到了一些解决方案来同步数据库,例如mysql复制,但我不知道这是否是适合我的情况的最佳方法。 I want that the database sync starts automatically after the filesync finished.
我希望文件同步完成后数据库同步自动开始。
I would be happy if someone could give me an adive on how to solve this problem the best way. 如果有人能给我一个最好的解决方法的建议,我会很高兴。
I'm a newbie with typo3 CMS and I need to deploy from DEV to PROD the changes made on the backend. 我是typo3 CMS的新手,我需要从DEV部署到PROD后端进行的更改。 So I think we have the same problem of sync between TYPO3 database.
所以我认为我们在TYPO3数据库之间存在同步问题。
Available solutions: - Use external Typoscript files to avoid storing it in database and updating PROD with svn update - Modify by hand the others parts 可用的解决方案:-使用外部Typoscript文件来避免将其存储在数据库中,并使用svn update更新PROD-手动修改其他部分
OR 要么
It's just theoritical solutions. 这只是理论上的解决方案。 At the moment, I can't test them.
目前,我无法对其进行测试。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.