Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / scripts / install / update_phabricator.sh
blob3831acd96338e11445b39042f30190354d3f0f25
1 #!/bin/sh
3 set -e
4 set -x
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.
11 # NOTE: This script assumes you are running it from a directory which contains
12 # arcanist/ and phabricator/.
14 ROOT=`pwd` # You can hard-code the path here instead.
16 ### UPDATE WORKING COPIES ######################################################
18 cd $ROOT/arcanist
19 git pull
21 cd $ROOT/phabricator
22 git pull
25 ### CYCLE WEB SERVER AND DAEMONS ###############################################
27 # Stop daemons.
28 $ROOT/phabricator/bin/phd stop
30 # If running the notification server, stop it.
31 # $ROOT/phabricator/bin/aphlict stop
33 # Stop the webserver (apache, nginx, lighttpd, etc). This command will differ
34 # depending on which system and webserver you are running: replace it with an
35 # appropriate command for your system.
36 # NOTE: If you're running php-fpm, you should stop it here too.
38 sudo /etc/init.d/httpd stop
41 # Upgrade the database schema. You may want to add the "--force" flag to allow
42 # this script to run noninteractively.
43 $ROOT/phabricator/bin/storage upgrade
45 # Restart the webserver. As above, this depends on your system and webserver.
46 # NOTE: If you're running php-fpm, restart it here too.
47 sudo /etc/init.d/httpd start
49 # Restart daemons.
50 $ROOT/phabricator/bin/phd start
52 # If running the notification server, start it.
53 # $ROOT/phabricator/bin/aphlict start