更高效的ExpressionEngine服务器移动 [英] More efficient ExpressionEngine server moves

查看:73
本文介绍了更高效的ExpressionEngine服务器移动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试寻找一种更好的方法来将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?

推荐答案

除非使用全局配置变量,否则这些存储在数据库中.

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).

看看以下文章:

  • http://eeinsider.com/articles/creating-a-robust-config.php-file/
  • http://boblet.tumblr.com/post/68095239/ee-localhost
  • http://eeinsider.com/articles/multi-server-setup-for-ee-2/

我已经尝试过这些解决方案,但是我认为最好的选择是NSM config bootstrap.

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

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

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

这篇关于更高效的ExpressionEngine服务器移动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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