Nebyk
Nebyk

Reputation: 37

Downgrade Phalcon from previous version?

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?

Upvotes: 4

Views: 2197

Answers (1)

Timothy
Timothy

Reputation: 2003

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) enter image description here

Upvotes: 4

Related Questions