Drupal在Git上,怎么处理数据库? [英] Drupal on Git, what to do with the database?

查看:65
本文介绍了Drupal在Git上,怎么处理数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Git开发一个有几个人的Drupal网站,重要的是,这个网站将使用相同的数据库而不使用路径,因为每个开发人员都有另一个目录上的开发版本。



我该怎么做? >

也许我应该让Drupal在SQLite上开发工作;那么我们可以将SQLite文件添加到Git存储库。

解决方案

而不是在数据库级别工作来存储你的站点>组件,使用代码。借助于 exportables 的视图,内容类型,字段,输入格式等=nofollow noreferrer>功能模块。



请参阅发展 - >分段 - >生产工作流程问题在Drupal 和所述代码驱动开发:在Drupal 6和7中有效地使用特性演示。


I'm currently developing a Drupal website with a couple of people on Git; it is important that this website would be using the same database without the path because each developer has the dev version on another directory.

How should I do it?

Perhaps I should make Drupal work with SQLite on the development only; then we could add the SQLite file to the Git repository.

解决方案

Instead of working at the database level to store your site components, use code. Drupal has now great supports for exportables for views, content type, fields, input formats, etc. with the help of the features module.

See The Development -> Staging -> Production Workflow Problem in Drupal and the Code driven development: using Features effectively in Drupal 6 and 7 presentation.

这篇关于Drupal在Git上,怎么处理数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆