简体   繁体   English

通过git的ExpressionEngine源代码控制

[英]ExpressionEngine source control via git

Im stuck with supporting some ExpressionEngine sites and I'm trying to check this CMS into source control. 我坚持支持某些ExpressionEngine网站,但我正在尝试将此CMS检查到源代码管理中。

I am failing since I cannot see a way to decouple the database from the templates and other structures. 我失败了,因为我看不到将数据库与模板和其他结构分离的方法。 I'd like to be able to version control aspects in the CMS including content and channel creation as well as template creation and modification. 我希望能够在CMS中进行版本控制,包括内容和频道创建以及模板创建和修改。

Have you saved the templates as text files? 您是否已将模板另存为文本文件? Once you do that, you can then just backup the template folder. 完成后,您就可以备份模板文件夹了。 http://ellislab.com/expressionengine/user-guide/templates/templates_as_files.html http://ellislab.com/expressionengine/user-guide/templates/templates_as_files.html

I'm not sure why you say that EE is a legacy system, they actually just pushed out their v2.8 a few days ago and have been updating the system for years. 我不确定您为什么说EE是旧系统,实际上他们几天前才推出v2.8,并且已经对该系统进行了多年更新。

If you're familiar with WordPress, the process really shouldn't be too different. 如果您熟悉WordPress,则过程实际上应该没有太大不同。 You need to save templates as files and version control those along with system files. 您需要将模板另存为文件,并对模板和系统文件进行版本控制。 You're most likely not going to be version-controlling the database similar to the way you wouldn't be doing that with WordPress. 您极有可能不会像对WordPress那样不会对数据库进行版本控制。

Simply turning to Google would probably give you hundreds of answers about how to do this but I'll leave you with what I consider to be the most definitive reading on the subject: 简单地转向Google可能会为您提供有关如何执行此操作的数百个答案,但我将为您提供关于该主题的最权威的阅读材料:

http://devot-ee.com/articles/item/version-control-for-expressionengine-using-git-part-1 http://devot-ee.com/articles/item/version-control-for-expressionengine-using-git-part-1

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

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