将Magento更新到特定版本(不是最新的) [英] Update Magento to specific version (not latest)

查看:78
本文介绍了将Magento更新到特定版本(不是最新的)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将Magento 1.4.2.0更新为1.6.x.y.而不是最新版本1.7.x.y

I want to update a Magento 1.4.2.0 to 1.6.x.y. instead of the latest version 1.7.x.y

关于如何将Magento安装更新到最新版本的文章很多,但这不是我想要的.在一些论坛主题中,人们问如何更新到特定版本,但是这些主题都没有解决方案.

There are many articles on how to update a Magento installation to the latest version, but that´s not what I want. There are some forum threads where people are asking how to update to a specific version, but those all don´t sport a solution.

似乎只能解压缩特定版本的tar.gz,但无法使用命令行工具

It seems like it is only possible to unpack the tar.gz of the specific version, but it is not possible to use the command line tool, i.e.

./mage config-set preferred_state stable
./mage upgrade-all --force

是否可以使用命令行工具更新到特定版本?

Is there a way to use the command line tool to update to a specific version?

推荐答案

两种不同的处理方式,1)手动...

根据我的经验,您最终要做的是报废Magento Connect(通常是万恶之源,当您连续进行两次或三次局部升级时),下载整个软件包 (您可以在发行档案"选项卡上找到所有可用的版本),并将其解压缩到目录中然后在服务器上,将它们复制到您的Magento根目录中,或者从远程工作站上,通过ftp/scp将它们上传到服务器的Magento根目录中.

From my experience, what you end up doing is scrapping Magento Connect (which often is the source of all evil, when you've had it do partial upgrades two or three times in a row), downloading the whole package from the download archive (you have all the versions available from there on the Release Archives tab), unzipping them to a directory and then either on the server, copying them into your Magento root directory or from a remote workstation, ftp/scp uploading them to the server Magento root directory.

如果您对运行Magento认真,那么您将拥有一台开发服务器,可以多次执行此操作,以找出所有升级破损的位置,以便您清除掉模板,检测出遗忘的核心修改,诅咒无法生存的第三方模块,等等.如果您依赖该电子商务网站来获得收入,那么这样做非常重要,因为当您准备不足并沉没时,就会出现大量的麻烦网站.

If you're serious about running Magento, you will have a development server that you do this to several times to find out where all the upgrade breakages are so you can weed out busted templates, detect forgotten core modifications, curse third party modules that don't survive, etc. It's really important to do this if you're depending on that e-commerce site for your income as intense suckage occurs when you aren't ready and sink the live site.

如果您已经模块化了所有模块替代,创建了自己的外观文件夹和自定义模板,或者使用了开发人员编写好的模板,那么实际上只是将新版本文件转储到旧版本文件之上并进行覆盖一切(仅在之后,如果您正在使用它,则禁用所有Magento缓存和编译器,然后手动删除所有var/cache--?文件夹).

If you've modularized all your module overrides, created your own skin folders and custom template or used a well written template from a developer, it truly is just simply dumping the new version files on top of the old version files and overwriting everything (only after disabling all Magento caching and the compiler if you were using it and manually deleting all var/cache--? folders).

但是,如果您修改了要覆盖的任何文件,那么您将受到伤害,因为您没有正确执行操作.

If, however, you've modified any of the files you are overwriting, you are in a world of hurt because you didn't do things properly.

此外,您还必须处理升级第三方模块以使用新版本的情况.

Also, you have to deal with upgrading third party modules to work with the new version.

然后在提交实时站点之前,备份所有Magento应用程序文件并进行数据库转储.

Then before committing the live site, backup all Magento application files and do a database dump.

2)或按以下方式使用命令行工具...

由于最初的问题是:您可以使用命令行工具吗?"是的..一旦您从下载档案中保存文件 ,请使用以下命令:

Since the original question was, "can you use the command line tool?" yes you can. Once you have the file saved from the download archive, use the following:

./mage install-file /home/login-name/path-to-download-file/magento-1.5.x.x.tgz

我还在各种模块软件包上使用了它来检查内容. mage命令只有下载,下载软件包文件,检查内容.如果您喜欢它的功能,请安装它.

I've also used this on various module packages to inspect the contents. The mage command has a download only, download the package file, inspect the contents. If you like what it does, install it.

这篇关于将Magento更新到特定版本(不是最新的)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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