Path: blob/master/scripts/install/update_phabricator.sh
12241 views
#!/bin/sh12set -e3set -x45# This is an example script for updating Phabricator, similar to the one used to6# update <https://secure.phabricator.com/>. It might not work perfectly on your7# system, but hopefully it should be easy to adapt. This script is not intended8# to work without modifications.910# NOTE: This script assumes you are running it from a directory which contains11# arcanist/ and phabricator/.1213ROOT=`pwd` # You can hard-code the path here instead.1415### UPDATE WORKING COPIES ######################################################1617cd $ROOT/arcanist18git pull1920cd $ROOT/phabricator21git pull222324### CYCLE WEB SERVER AND DAEMONS ###############################################2526# Stop daemons.27$ROOT/phabricator/bin/phd stop2829# If running the notification server, stop it.30# $ROOT/phabricator/bin/aphlict stop3132# Stop the webserver (apache, nginx, lighttpd, etc). This command will differ33# depending on which system and webserver you are running: replace it with an34# appropriate command for your system.35# NOTE: If you're running php-fpm, you should stop it here too.3637sudo /etc/init.d/httpd stop383940# Upgrade the database schema. You may want to add the "--force" flag to allow41# this script to run noninteractively.42$ROOT/phabricator/bin/storage upgrade4344# Restart the webserver. As above, this depends on your system and webserver.45# NOTE: If you're running php-fpm, restart it here too.46sudo /etc/init.d/httpd start4748# Restart daemons.49$ROOT/phabricator/bin/phd start5051# If running the notification server, start it.52# $ROOT/phabricator/bin/aphlict start535455