Skip to content

Commit 7a28263

Browse files
author
epriestley
committedFeb 14, 2013
Simplify the "update_phabricator.sh" script
Summary: Pare this down to the bare bones. Diviner is going away soon anyway. Test Plan: Read instructions. Reviewers: edward Reviewed By: edward CC: aran Differential Revision: https://secure.phabricator.com/D4951
1 parent 60cb9e1 commit 7a28263

File tree

1 file changed

+12
-40
lines changed

1 file changed

+12
-40
lines changed
 

‎scripts/install/update_phabricator.sh

+12-40
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,16 @@ set -x
55

66
# This is an example script for updating Phabricator, similar to the one used to
77
# update <https://secure.phabricator.com/>. It might not work perfectly on your
8-
# system, but hopefully it should be easy to adapt.
8+
# system, but hopefully it should be easy to adapt. This script is not intended
9+
# to work without modifications.
910

1011
# NOTE: This script assumes you are running it from a directory which contains
11-
# arcanist/, libphutil/, phabricator/, and possibly diviner/.
12+
# arcanist/, libphutil/, and phabricator/.
1213

1314
ROOT=`pwd` # You can hard-code the path here instead.
1415

1516
### UPDATE WORKING COPIES ######################################################
1617

17-
if [ -e $ROOT/diviner ]
18-
then
19-
cd $ROOT/diviner
20-
git pull
21-
fi
22-
2318
cd $ROOT/libphutil
2419
git pull
2520

@@ -30,45 +25,22 @@ cd $ROOT/phabricator
3025
git pull
3126

3227

33-
### RUN TESTS ##################################################################
34-
35-
# This is an acceptance test that makes sure all symbols can be loaded to
36-
# avoid issues like missing methods in descendants of abstract base classes.
37-
cd $ROOT/phabricator
38-
../arcanist/bin/arc unit src/infrastructure/__tests__/
39-
40-
41-
### CYCLE APACHE AND DAEMONS ###################################################
28+
### CYCLE WEB SERVER AND DAEMONS ###############################################
4229

4330
# Stop daemons.
4431
$ROOT/phabricator/bin/phd stop
4532

46-
# Stop Apache. Depening on what system you're running, you may need to use
47-
# 'apachectl' or something else to cycle apache.
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.
4836
sudo /etc/init.d/httpd stop
4937

50-
# Upgrade the database schema.
51-
$ROOT/phabricator/bin/storage upgrade --force
38+
# Upgrade the database schema. You may want to add the "--force" flag to allow
39+
# this script to run noninteractively.
40+
$ROOT/phabricator/bin/storage upgrade
5241

53-
# Restart apache.
42+
# Restart the webserver. As above, this depends on your system and webserver.
5443
sudo /etc/init.d/httpd start
5544

56-
# Restart daemons. Customize this to start whatever daemons you're running on
57-
# your system.
58-
45+
# Restart daemons.
5946
$ROOT/phabricator/bin/phd start
60-
# $ROOT/phabricator/bin/phd launch ircbot /config/bot.json
61-
62-
63-
### GENERATE DOCUMENTATION #####################################################
64-
65-
# This generates documentation if you have diviner/ checked out. You generally
66-
# don't need to do this unless you're contributing to Phabricator and want to
67-
# preview some of the amazing documentation you've just written.
68-
if [ -e $ROOT/diviner ]
69-
then
70-
cd $ROOT/diviner && $ROOT/diviner/bin/diviner .
71-
cd $ROOT/libphutil && $ROOT/diviner/bin/diviner .
72-
cd $ROOT/arcanist && $ROOT/diviner/bin/diviner .
73-
cd $ROOT/phabricator && $ROOT/diviner/bin/diviner .
74-
fi

0 commit comments

Comments
 (0)
Failed to load comments.