升级 Zend 框架 - Steps &指导 [英] Upgrading Zend Framework - Steps & Guidance

查看:22
本文介绍了升级 Zend 框架 - Steps &指导的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我维护的网站目前使用的是 Zend Framework 1.8.0,已经有 2 年多了.我想升级到 1.11.11,但在寻找如何顺利实现这一目标的基本指南时遇到了一些麻烦.是不是像用最新的文件覆盖 library/Zend 文件夹一样简单?

The site I maintain is currently using Zend Framework 1.8.0, which is over 2 years old. I'd like to upgrade to 1.11.11 and am having some trouble finding basic guidelines for how to pull this off smoothly. Is it as simple as overwriting the library/Zend folder with the latest files?

以下是我计划采取的步骤.我错过了什么吗?

Here are my steps I plan on taking. Am I missing anything?

  1. 下载最新的 Zend Framework 代码.
  2. 通过 SSH 连接到服务器并将 library/Zend 复制到/path/to/webapp/library 并调用类似 Zend-1.11 的文件夹.
  3. 在我们的网站上放置网站因维护而关闭".
  4. cd/path/to/webapp 然后制作当前 Zend 版本的备份副本,例如cp -R Zend Zend-old
  5. mv Zend-1.11 Zend
  6. 删除网站因维护页面关闭"

此时,/library/Zend 文件夹将包含最新的 Zend Framework 代码,如果出现任何问题,我可以切换回Zend-old".

At this point, the /library/Zend folder would have the latest Zend Framework code and I'd have "Zend-old" to switch back to in case anything goes wrong.

这是典型的升级方式吗?

Is this the typical way to upgrade?

推荐答案

更新 Zend Framework 之前要做的事情:

Things to do before updating Zend Framework:

  1. 阅读更改日志,从当前版本到要下载的最新版本.
  2. 执行此操作时,请确保您的所有当前代码都可以正常工作,没有任何错误,即使是小错误.通常所有更新都是向后兼容的.(但有时,如果某个特定模块有任何重大更改,您的代码将有一些返工)
  3. 如果新版本的 ZF 具有可用于您的网站的新功能,请修改您的网站以使用它.
  4. 首先在您的开发环境中更新框架(通过将您的 lib 路径指向新的框架文件),然后确保您网站的所有部分都能正常工作并且所有测试都通过.
  5. 然后使用问题中提到的相同方式使用新版本更新您的生产网站.
  1. Read the change log from your current version to the latest version that you are downloading.
  2. While doing so, make sure all your current code will work without any bugs, even minor. Usually all updates are backward compatible. (But sometimes, if there are any major changes around a particular module, you will have a little rework in your code)
  3. If the new version of ZF has a new feature that you can use for your site, modify your site to use it.
  4. Update the framework in your development environment first (by pointing your lib path to the new framework files) and then make sure all parts of your site works the same and all your tests are passing.
  5. Then update your production site with the new version using the same way mentioned in the question.

这篇关于升级 Zend 框架 - Steps &指导的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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