从先前版本降级Phalcon? [英] Downgrade Phalcon from previous version?

查看:93
本文介绍了从先前版本降级Phalcon?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Ubuntu 15中运行并安装了Phalcon v3,但是我当前使用Phalcon v2的当前工作API出现问题,是否有办法将我安装的Phalcon当前版本降级到以前的v2?

Im running in Ubuntu 15 and installed Phalcon v3 but i have an issue with our current working API which is using v2 of Phalcon, is there a way to downgrade the current version of Phalcon that i'd installed to the previous v2?

推荐答案

通常,在Phalcon编译期间,您将执行此命令.默认情况下,它将克隆master分支.

Usually, during compilation of Phalcon, you would execute this command. By default it will clone the master branch.

 git clone --depth=1 git://github.com/phalcon/cphalcon.git

但是要选择特定的分支,您需要在命令的末尾添加branch参数.

But to select a specific branch, you need to add the branch parameter to the end of your command.

 git clone --depth=1 git://github.com/phalcon/cphalcon.git --branch 2.0.0

现在只需运行其他命令来(重新)编译Phalcon

Now just run the other commands to (re)compile Phalcon

cd cphalcon/build
sudo ./install

您可以检查github上所有其他可用的分支(请参见下图)

You can check all the other available branches on github (see image below)

这篇关于从先前版本降级Phalcon?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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