Downgrade Phalcon from previous version?

橙三吉。 提交于 2020-01-03 17:25:14

问题


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?


回答1:


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

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

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

cd cphalcon/build
sudo ./install

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



来源:https://stackoverflow.com/questions/38710352/downgrade-phalcon-from-previous-version

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!