In this article, I will give an example of a Phabricator update.
First of all, we will make a backup copy.
Let’s say Phabricator is installed in the directory /home/phd/ and the user phd is created, then we switch to the user:
su phd
Make sure that a stable branch is used:
cd /home/phd/arcanist/
git checkout stable
cd /home/phd/libphutil/
git checkout stable
cd /home/phd/phabricator/
git checkout stable
Stop the process:
/home/phd/phabricator/bin/phd stop
Update files:
cd /home/phd/libphutil/
git pull
cd /home/phd/arcanist/
git pull
cd /home/phd/phabricator/
git pull
Update the database:
/home/phd/phabricator/bin/storage upgrade
Now you can start the process:
/home/phd/phabricator/bin/phd start
And restart the web server:
sudo service apache2 restart
See also my article:
Install Phabricator on Ubuntu