Changeset View
Changeset View
Standalone View
Standalone View
src/docs/user/upgrading.diviner
Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | |||||
# system, but hopefully it should be easy to adapt. This script is not intended | # system, but hopefully it should be easy to adapt. This script is not intended | ||||
# to work without modifications. | # to work without modifications. | ||||
# NOTE: This script assumes you are running it from a directory which contains | # NOTE: This script assumes you are running it from a directory which contains | ||||
# arcanist/, libphutil/, and phabricator/. | # arcanist/, libphutil/, and phabricator/. | ||||
ROOT=`pwd` # You can hard-code the path here instead. | ROOT=`pwd` # You can hard-code the path here instead. | ||||
### UPDATE WORKING COPIES ###################################################### | ### STOP WEB SERVER AND DAEMONS ############################################### | ||||
cd $ROOT/libphutil | |||||
git pull | |||||
cd $ROOT/arcanist | |||||
git pull | |||||
cd $ROOT/phabricator | |||||
git pull | |||||
### CYCLE WEB SERVER AND DAEMONS ############################################### | |||||
# Stop daemons. | # Stop daemons. | ||||
$ROOT/phabricator/bin/phd stop | $ROOT/phabricator/bin/phd stop | ||||
# If running the notification server, stop it. | # If running the notification server, stop it. | ||||
# $ROOT/phabricator/bin/aphlict stop | # $ROOT/phabricator/bin/aphlict stop | ||||
# Stop the webserver (apache, nginx, lighttpd, etc). This command will differ | # Stop the webserver (apache, nginx, lighttpd, etc). This command will differ | ||||
# depending on which system and webserver you are running: replace it with an | # depending on which system and webserver you are running: replace it with an | ||||
# appropriate command for your system. | # appropriate command for your system. | ||||
# NOTE: If you're running php-fpm, you should stop it here too. | # NOTE: If you're running php-fpm, you should stop it here too. | ||||
sudo /etc/init.d/httpd stop | sudo /etc/init.d/httpd stop | ||||
### UPDATE WORKING COPIES ###################################################### | |||||
cd $ROOT/libphutil | |||||
git pull | |||||
cd $ROOT/arcanist | |||||
git pull | |||||
cd $ROOT/phabricator | |||||
git pull | |||||
# Upgrade the database schema. You may want to add the "--force" flag to allow | # Upgrade the database schema. You may want to add the "--force" flag to allow | ||||
# this script to run noninteractively. | # this script to run noninteractively. | ||||
$ROOT/phabricator/bin/storage upgrade | $ROOT/phabricator/bin/storage upgrade | ||||
# Restart the webserver. As above, this depends on your system and webserver. | # Restart the webserver. As above, this depends on your system and webserver. | ||||
# NOTE: If you're running php-fpm, restart it here too. | # NOTE: If you're running php-fpm, restart it here too. | ||||
sudo /etc/init.d/httpd start | sudo /etc/init.d/httpd start | ||||
# Restart daemons. | # Restart daemons. | ||||
$ROOT/phabricator/bin/phd start | $ROOT/phabricator/bin/phd start | ||||
# If running the notification server, start it. | # If running the notification server, start it. | ||||
# $ROOT/phabricator/bin/aphlict start | # $ROOT/phabricator/bin/aphlict start | ||||
``` | ``` |