@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
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

+12 -40
+12 -40
scripts/install/update_phabricator.sh
··· 5 5 6 6 # This is an example script for updating Phabricator, similar to the one used to 7 7 # 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. 9 10 10 11 # 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/. 12 13 13 14 ROOT=`pwd` # You can hard-code the path here instead. 14 15 15 16 ### UPDATE WORKING COPIES ###################################################### 16 17 17 - if [ -e $ROOT/diviner ] 18 - then 19 - cd $ROOT/diviner 20 - git pull 21 - fi 22 - 23 18 cd $ROOT/libphutil 24 19 git pull 25 20 ··· 30 25 git pull 31 26 32 27 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 ############################################### 42 29 43 30 # Stop daemons. 44 31 $ROOT/phabricator/bin/phd stop 45 32 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. 48 36 sudo /etc/init.d/httpd stop 49 37 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 52 41 53 - # Restart apache. 42 + # Restart the webserver. As above, this depends on your system and webserver. 54 43 sudo /etc/init.d/httpd start 55 44 56 - # Restart daemons. Customize this to start whatever daemons you're running on 57 - # your system. 58 - 45 + # Restart daemons. 59 46 $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