简体   繁体   English

从cakephp-2.0.2升级到cakephp-2.0.3的最简单/正确/最安全的方法是什么?

[英]What's the easiest/correct/safest way to upgrade from cakephp-2.0.2 to cakephp-2.0.3?

The project was developed with cakephp-2.0.2. 该项目是用cakephp-2.0.2开发的。

Now i'm going to upgrade it to cakephp-2.0.3. 现在,我将其升级到cakephp-2.0.3。

What's the easiest and safest way to do it ? 最简单,最安全的方法是什么?

You can either: 您可以:

Remove /cake in your 2.0.2 install and replace it the /cake directory of 2.0.3 在2.0.2安装中删除/ cake,并将其替换为2.0.3的/ cake目录

or (preferable): 或(首选):

Install cake 2.0.3 to a new location 将Cake 2.0.3安装到新位置

Copy 2.0.2 /app to the new installation. 将2.0.2 / app复制到新安装。 If you have any custom files in /plugins or /vendors they'll need to be moved too. 如果您在/ plugins或/ vendors中有任何自定义文件,则也需要移动它们。

(Don't forget to empty the cache directories in /app/tmp/cache - leave the directories intact, just remove any files in them). (不要忘记清空/ app / tmp / cache中的缓存目录-保留目录不变,只需删除其中的所有文件)。

whats the big deal? 有什么大不了的? simply replace the two core folders. 只需替换两个核心文件夹。 run all tests and apply corrections where necessary. 运行所有测试并在必要时应用更正。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM