Skip to content

Instantly share code, notes, and snippets.

@JosephKu
Last active February 14, 2017 04:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JosephKu/7a151e737c0a2de3eb3a6ec3c262fa9a to your computer and use it in GitHub Desktop.
Save JosephKu/7a151e737c0a2de3eb3a6ec3c262fa9a to your computer and use it in GitHub Desktop.
Phabricator upgrading script
#!/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