[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 #!/bin/sh 2 3 set -e 4 set -x 5 6 # This is an example script for updating Phabricator, similar to the one used to 7 # update <https://secure.phabricator.com/>. It might not work perfectly on your 8 # system, but hopefully it should be easy to adapt. This script is not intended 9 # to work without modifications. 10 11 # NOTE: This script assumes you are running it from a directory which contains 12 # arcanist/, libphutil/, and phabricator/. 13 14 ROOT=`pwd` # You can hard-code the path here instead. 15 16 ### UPDATE WORKING COPIES ###################################################### 17 18 cd $ROOT/libphutil 19 git pull 20 21 cd $ROOT/arcanist 22 git pull 23 24 cd $ROOT/phabricator 25 git pull 26 27 28 ### CYCLE WEB SERVER AND DAEMONS ############################################### 29 30 # Stop daemons. 31 $ROOT/phabricator/bin/phd stop 32 33 # If running the notification server, stop it. 34 # $ROOT/phabricator/bin/aphlict stop 35 36 # Stop the webserver (apache, nginx, lighttpd, etc). This command will differ 37 # depending on which system and webserver you are running: replace it with an 38 # appropriate command for your system. 39 # NOTE: If you're running php-fpm, you should stop it here too. 40 41 sudo /etc/init.d/httpd stop 42 43 44 # Upgrade the database schema. You may want to add the "--force" flag to allow 45 # this script to run noninteractively. 46 $ROOT/phabricator/bin/storage upgrade 47 48 # Restart the webserver. As above, this depends on your system and webserver. 49 # NOTE: If you're running php-fpm, restart it here too. 50 sudo /etc/init.d/httpd start 51 52 # Restart daemons. 53 $ROOT/phabricator/bin/phd start 54 55 # If running the notification server, start it. 56 # $ROOT/phabricator/bin/aphlict start
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |