Last active
February 14, 2017 04:45
-
-
Save JosephKu/7a151e737c0a2de3eb3a6ec3c262fa9a to your computer and use it in GitHub Desktop.
Phabricator upgrading script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# This script only works on Ubuntu Linux LTS 16.04 LTS or the latest systemd based Ubuntu Linux | |
set -ex | |
ROOT=`pwd` | |
# Stop related services | |
$ROOT/phabricator/bin/phd stop | |
$ROOT/phabricator/bin/aphlict stop | |
sudo service apache2 stop | |
# Update working copies | |
cd $ROOT/libphutil | |
git pull | |
cd $ROOT/arcanist | |
git pull | |
cd $ROOT/phabricator | |
git stash | |
git pull | |
# Upgrade the database schema | |
$ROOT/phabricator/bin/storage upgrade -f | |
# Restart all services | |
sudo service apache2 start | |
$ROOT/phabricator/bin/phd start | |
$ROOT/phabricator/bin/aphlict start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment