从 ColdFusion MX7 迁移到 ColdFusion 9。有任何问题吗?

发布于 2024-09-17 11:31:26 字数 164 浏览 1 评论 0原文

我正计划将服务器从 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 技术交流群。

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

发布评论

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

评论(2

有深☉意 2024-09-24 11:31:26

总的来说,Adobe(以及之前的 Macromedia)已经竭尽全力确保适当的向后兼容性。所以经验法则是你应该没问题。

首先也是最重要的,我会使用 ColdFusion 的代码兼容性分析器。如果您想在升级之前进行检查,它可以作为免费开发人员版本的一部分提供。

您可以在 ColdFusion Administrator 的“调试和”中找到它。日志记录部分,作为“代码分析器”。

正如该页面上所说:

代码兼容性分析器可帮助您将应用程序从早期版本的 ColdFusion 迁移到 ColdFusion。

代码兼容性分析器会检查您指定的 CFML 页面,并通知您任何潜在的兼容性问题。它检测不受支持和已弃用的 CFML 功能,并概述确保顺利迁移所需的实现更改。

如果分析器没有发现任何问题,我会鼓励您安装开发人员版本并运行单元测试。 (你有单元测试,对吧?)

如果你没有单元测试,你唯一的选择就是手动测试所有内容。祝你好运!

最后一种方法是阅读版本 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:

The Code Compatibility Analyzer helps migrate your applications to ColdFusion from earlier versions of ColdFusion.

The Code Compatibility Analyzer reviews the CFML pages that you specify and informs you of any potential compatibility issues. It detects unsupported and deprecated CFML features, and outlines the required implementation changes that ensure a smooth migration.

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.

救星 2024-09-24 11:31:26

我们最近刚刚完成了完全相同的升级,从 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.

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