更高效的 ExpressionEngine 服务器移动

发布于 2025-01-01 23:23:46 字数 276 浏览 3 评论 0原文

我正在尝试找到一种更好的方法将我的 Expression Engine 2 站点从开发服务器转移到实时服务器。我有一个检查清单,首先运行查找并替换旧/新 URL 和服务器路径,然后更新数据库配置文件。然而,这遗漏了大量的设置,然后我必须手动检查和更改这些设置,但我不明白为什么我应该需要这样做(除非这些设置在某处加密)。

例如,我必须手动更改全局模板设置中的“模板文件目录的基本路径”以及成员设置和其他一些设置。在上传之前,我可以在某处更改包含这些内容的文件或条目,但我找不到它。

有谁知道这些存储在哪里?

I'm trying to find a better way to move my Expression Engine 2 sites from development to live servers. I have a checklist that I go through, starting with running a find and replace for the old/new URLs and server paths, then I update the database config file. This however misses out a huge amount of settings that I then have to go through and change manually, but I don't see why I should need to (unless these are encrypyed somewhere).

For example, I have to change the "Basepath to Template File Directory" in the Global Template Settings manually, along with member settings and a handful of others. There must be a file or entry with these in somewhere that I can change before I upload but I can't find it.

Does anyone know where these are stored?

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

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

发布评论

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

评论(2

绝對不後悔。 2025-01-08 23:23:46

除非您使用全局配置变量,否则它们存储在数据库中。

我强烈建议您研究某种配置引导程序。对此有很多解决方案,但实际上取决于您选择适合您的开发风格/环境的解决方案。

请查看以下文章:

我已经尝试过这些解决方案,但在我看来最好的选项是 NSM配置引导程序。

在这里查看:[http://ee-garage.com/nsm-config-bootstrap][4]

这些解决方案(当前)唯一缺少的是有关文件上传路径和位置的新配置变量。 中详细介绍的变量来将这些解决方案添加到任何解决方案中:

您可以通过添加本文 -urls-使用配置变量” rel="nofollow">http://expressionengine.com/user_guide/cp/content/files/file_upload_preferences.html#overriding-upload-paths-and-urls-using-configuration-variables

Those are stored in the database, unless you are using global config variables.

I would highly recommend looking into some sort of config bootstrap. There are quite a few solutions to this, but it's really up to you to pick what's right for your development style / environment(s).

Take a look at the following articles:

I've tried those solutions, but in my opinion the best option is NSM config bootstrap.

Check it out here: [http://ee-garage.com/nsm-config-bootstrap][4]

The only thing (currently) missing from these solutions are new config vars regarding file upload paths and locations. You can add those to any of these solutions by adding the variables detailed in this article:

http://expressionengine.com/user_guide/cp/content/files/file_upload_preferences.html#overriding-upload-paths-and-urls-using-configuration-variables

╰ゝ天使的微笑 2025-01-08 23:23:46

我知道我在这方面迟到了,但对于其他正在搜索的人来说,这个插件非常有用,我已经在很多场合使用过它。

ExpressionEngine 将您的网站 URL 和服务器路径存储在数量惊人的地方。

REElocate 可帮助您通过一个简单的步骤更新这些内容。

https://github.com/expressodev/reelocate

I know I'm late on this one, but for anyone else searching, this plugin is very useful and I have used it on numerous occasions.

ExpressionEngine stores your website URL and Server Path in a ridiculous number of places.

REElocate helps you update these in one simple step.

https://github.com/expressodev/reelocate

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