从 ColdFusion MX7 迁移到 ColdFusion 9。有任何问题吗?
我正计划将服务器从 ColdFusion MX7 迁移到 ColdFusion 9。有谁知道我应该采取哪些步骤才能实现这一目标而不出现重大问题?我在网络上找不到任何谈论此问题的内容,并且我不想在不知道自己面临什么的情况下就开始执行此任务。
任何建议、文章链接等将不胜感激。
谢谢你!
I'm planning a migration on a server from ColdFusion MX7 to ColdFusion 9. Does anyone know which steps I should take in order to achieve this without major issues? I can't find anything on the web that talks about this and I don't want to jump into this task without knowing what I'm up against.
Any suggestions, link to articles, etc. would be very much appreciated.
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
总的来说,Adobe(以及之前的 Macromedia)已经竭尽全力确保适当的向后兼容性。所以经验法则是你应该没问题。
首先也是最重要的,我会使用 ColdFusion 的代码兼容性分析器。如果您想在升级之前进行检查,它可以作为免费开发人员版本的一部分提供。
您可以在 ColdFusion Administrator 的“调试和”中找到它。日志记录部分,作为“代码分析器”。
正如该页面上所说:
如果分析器没有发现任何问题,我会鼓励您安装开发人员版本并运行单元测试。 (你有单元测试,对吧?)
如果你没有单元测试,你唯一的选择就是手动测试所有内容。祝你好运!
最后一种方法是阅读版本 8 和 9 以及 8.1 和 9.1 点版本的发行说明。 Adobe 和 Macromedia 一丝不苟地准确记录了更改的内容,这应该会对您有所帮助。 Adobe 提供了版本 8 和 9 的 PDF 版本发行说明。
By and large, Adobe (and Macromedia before them) have gone to great lengths to ensure backward compatibility where appropriate; so the rule of thumb is that you should be fine.
First and foremost, I would make use of ColdFusion's Code Compatibility Analyzer. It is available as part of the free Developer Edition, if you want to check before upgrading.
You can find it in the ColdFusion Administrator, in the Debugging & Logging section, as "Code Analyzer".
As it says on that page:
If the Analyzer doesn't find any issues, I would then encourage you to install the developer edition and run your unit tests. (You have unit tests, right?)
If you don't have unit tests, your only other option is just to test everything manually. Good luck!
One final approach is to read the release notes for versions 8 and 9, as well as the 8.1 and 9.1 point-releases. Adobe and Macromedia were meticulous about documenting precisely what changed, which should prove helpful for you. The release notes are available as PDF for both versions 8 and 9 from Adobe.
我们最近刚刚完成了完全相同的升级,从 CF 7 到 CF 9。即使使用可追溯到 CF 5 的旧应用程序,我们也没有遇到任何重大问题。
正如 Adam 指出的那样,代码兼容性分析器非常适合发现潜在的问题现有函数的新签名或新本地作用域的作用域问题等问题。
您不希望出现任何错误,因为这些错误肯定会在 CF 9 中破坏,修复错误后,您应该留下一堆警告,检查它们以确保它仍然会执行您的预期操作。您不应该忽略它们,并确保您了解忽略它们的含义。
此页面由 Josh Adam 的 http://blog.joshuaadams.com/index.cfm/2008/9/4/Upgrading-from-ColdFusion-MX-to-ColdFusion-8 有很多关于升级 CF 的好资源。它适用于 CF 7 到 CF 8,但大部分内容仍然适用于 CF 9。
在开始之前,最重要的步骤是备份所有内容。如果需要,您将需要一种快速返回 CF 7 的方法,因此您应该拥有未修改的代码、配置和 CFusionMX/jRun 目录的副本。我只是把机器搞鬼了以防万一。
We've just recently completed the exact same upgrade, going from CF 7 to CF 9. We didn't encounter any major issues even with old application dating back to CF 5.
As Adam pointed out the Code Compatibility Analyzer is great to find potential issues such as new signatures for existing functions or scoping problem with the new local scope.
You don't want any errors as those as sure to break with CF 9, after fixing the errors you should be left with a bunch of warnings, check them to make sure it will still do what you intended. You should not ignore them and make sure you understand the implication of ignoring one.
This page by Josh Adam's http://blog.joshuaadams.com/index.cfm/2008/9/4/Upgrading-from-ColdFusion-MX-to-ColdFusion-8 has a lot of good resource on upgrading CF in general. It's for CF 7 to CF 8 but most of it still applies to CF 9.
Before starting, the most important step of all would be to backup everything. You'll want a quick way to go back to CF 7 if you ever need to so you should have a copy of the unmodified code, configurations and CFusionMX/jRun directory. I just ended up ghosting the machine in case.