克隆 OctoberCMS 应用程序

Clone OctoberCMS application

我目前正在使用 ScotchBox 在 VirtualBox 上开发 OctoberCMS 网站。

我买了一台新机器,我想把我的工作转移到那里。我正在尝试找到一种方法 completely/identically 将我的 VMbox 克隆到那台 PC,但无济于事,我仍然坚持这样做。

现在,我想克隆我当前的 OctoberCMS 开发环境。有没有办法 clone/duplicate 我的 OctoberCMS 应用程序到另一个 ScotchBox?因为,我不想从头开始重新设置所有内容。我已经做了一些事情,再复制粘贴会浪费时间。

我想要的是将我当前的 OctoberCMS 克隆到另一台 PC 上,就好像我只是在我的旧 PC 上工作一样,这可能吗?


我的想法当然是,我需要转储我的数据库,并且我正在考虑压缩我的 OctoberCMS 目录。但我确实认为有一种 official/recommended 的方法?

顺便说一下,我的 Box 使用的是 folder sync,所以我的实际 OctoberCMS 文件位于我的主机上。

感谢您的回答!

就去做吧,

一切正常 relative urlsrelative path,所以您无需担心,

its pages are almost flat files so they will come with copy paste :) so no issue there.

即使在设置过程中,它也只是从服务器复制 zip 文件并粘贴到本地,然后 unzip 它。

  1. 所以只需在新机器上获取 backup/dump 数据库和设置。
  2. zip 你整个 10 月的 cms 和 unzip 它到新机器。
  3. 然后编辑 config/database.php 以获得正确的 user-namepassword

那么你就完成了:)

I do same for most of the time and its working just fine trust me.

如果您发现任何其他困难,请写评论。