导入现有的 Drupal 项目

发布于 2024-12-16 19:19:19 字数 489 浏览 0 评论 0原文

我正在加入一个开发团队,他们有一个基于 Drupal 的在线托管项目。到目前为止,他们已经直接在生产环境上工作,这意味着直接上传文件并进行更改。我决定拥有一个开发环境,并有一些与之相关的问题。

i) 我已经在我的 MAC 上安装了 Drupal-7.9。现有网站采用 Drupal 6.x。我必须将站点的 drupal 文件下载到我的本地 drupal 文件夹中。我假设 Drupal 7.9 将向后兼容。如果我在这里错了,请纠正我

ii) 现在更棘手的部分是,当我将现有项目下载到我的 Drupal 文件夹时,文件目录和文件将覆盖现有的 Drupal 文件夹,这本质上会产生不可预见的问题。 我的想法是,我应该简单地下载这些文件并将它们存储在单独的文件夹中,然后将现有的 drupal 6.x 项目的安装脚本替换为 drupal 7.9 安装脚本的安装脚本?不确定这是否是最好的策略。

这几乎概括了我现在面临的挑战。对这一点的任何了解都会是有益的。

非常感谢,

帕里贾特·卡利亚

I am joining a team of developers who have an existing Drupal based project hosted online. So far, they have worked straight up on the production environment, meaning uploading files and making changes straight. I decided to have a development environment and have a few questions pertaining to that.

i) I have installed Drupal-7.9 on my MAC. The existing website is in Drupal 6.x. I am going to have to download the drupal files of the site onto my local drupal folder. I am assuming Drupal 7.9 will be backward compatible. Correct me if I am wrong here

ii) Now the trickier part, whilst I download the existing project onto my Drupal folder, the file directories and files are going to overwrite the existing Drupal folder, this essentially will create unforseen issues.
My thinking is that I should simply download these files and store them in a separate folder, and replace the installation script of the existing drupal 6.x project with that of the drupal 7.9 installation script? Not sure if this is the best strategy to go around.

This pretty much sums the challenge I am facing right now. Any light on this would be beneficial.

Thanks much,

Parijat Kalia

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

黯然 2024-12-23 19:19:19

恐怕 Drupal 7.x 不以任何方式向后兼容 Drupal 6,您需要在您的计算机上安装该站点作为 Drupal 6 站点,然后将其升级到版本 7。

您可以查看升级说明 < a href="http://drupal.org/node/548922" rel="nofollow">此处

I'm afraid Drupal 7.x is not in any way backward compatible with Drupal 6, you'll need to install the site on your machine as a Drupal 6 site and then upgrade it to version 7.

You can view the upgrade instructions here

浅浅 2024-12-23 19:19:19

您想要做的事情需要执行多个步骤。

  1. 首先下载他们在线的数据库并在本地进行设置。
  2. 使用与在线站点上使用的完全相同的版本设置 drupal 安装
  3. 从在线站点下载整个站点文件夹并用此替换本地站点站点文件夹。
  4. 进入sites/default并编辑settings.php,将base_url(注意:确保将http://放在基本url中)和数据库信息设置为您的本地信息。
  5. 现在,完成所有这些操作后,请访问本地站点并确保其运行。
  6. 现在您可以升级到 drupal 7。但是,如果该网站要在 drupal 6 中启动,我不建议升级,因为这很麻烦并且浪费时间。这是因为 drupal 6 和 7 有很大不同,升级可能需要几天时间,具体取决于网站的大小。

不过,我祝你一切顺利。

what you are trying to do requires a number of steps.

  1. Firstly download the database they have online and set it up locally.
  2. Setup a drupal install with the same exact version they are using on the online site
  3. Download the entire sites folder from online site and replace the local site sites folder with this.
  4. Go into sites/default and edit settings.php, set the base_url(note: make sure you put http:// in the base url) and database information there to your local info.
  5. Now after doing all of this, visit the local site and make sure its running.
  6. Now you may upgrade to drupal 7. However if the site is to be launched in drupal 6, i would not advise on upgrading, since its a lot of headache and a waste of time. This is so since drupal 6 and 7 are vastly different and upgrading may take days depending on the size of the website.

However, i wish you all the best.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文