从先前版本降级Phalcon? [英] Downgrade Phalcon from previous version?
问题描述
我在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屋!