@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1#!/bin/sh
2
3set -e
4set -x
5
6# This is an example script for updating Phabricator. It might not work
7# perfectly on your system, but hopefully it should be easy to adapt. This
8# script is not intended to work without modifications.
9
10# NOTE: This script assumes you are running it from a directory which contains
11# arcanist/ and phorge/. If you named them differently, you can change them
12# here:
13NAME_MAIN="phorge"
14NAME_ARC="arcanist"
15
16
17ROOT=`pwd` # You can hard-code the path here instead.
18
19### UPDATE WORKING COPIES ######################################################
20
21cd $ROOT/$NAME_ARC
22git pull
23
24cd $ROOT/$NAME_MAIN
25git pull
26
27
28### CYCLE WEB SERVER AND DAEMONS ###############################################
29
30# Stop daemons.
31$ROOT/$NAME_MAIN/bin/phd stop
32
33# If running the notification server, stop it.
34# $ROOT/$NAME_MAIN/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
41sudo /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/$NAME_MAIN/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.
50sudo /etc/init.d/httpd start
51
52# Restart daemons.
53$ROOT/$NAME_MAIN/bin/phd start
54
55# If running the notification server, start it.
56# $ROOT/$NAME_MAIN/bin/aphlict start