将 silverstripe 站点从一台服务器迁移到另一台服务器

Migrating silverstripe site from one server to another

我想对客户端服务器上的 Silver stripe 项目进行一些更改。我想在我的服务器上获取该项目,以便我可以在生产环境之外进行更改。

到目前为止我尝试过的:

当我尝试 silverstripe/project/dev/build/?flush=all 我得到:

Fatal error: Uncaught exception 'Exception' with message 
'There are two files containing the "ReportAdmin" class:
"/var/www/silverstripe//reports/code/ReportAdmin.php" and 
"/var/www/silverstripe//cms/code/controllers/ReportAdmin.php"

任何帮助将不胜感激,谢谢!

您 运行 两个同时安装的 SilverStripe。 ReportAdmin 在 3.2 中被分解成它自己的模块。在 < 3.2 中,ReportAdmin 与 CMS 捆绑在一起。

当您说 "Install new SilverStripe project locally" 时,您可能只是在使用最新的稳定版。找出当前站点的版本 运行 并明确安装它,例如composer create-project silverstripe/installer myproject/ 3.1.19