Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F396089
update_phabricator.sh
lianghu (Lianghu Xu)
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
lianghu
May 8 2015, 3:20 AM
2015-05-08 03:20:17 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
update_phabricator.sh
View Options
#!/bin/sh
set
-e
set
-x
# This is an example script for updating Phabricator, similar to the one used to
# update <https://secure.phabricator.com/>. It might not work perfectly on your
# system, but hopefully it should be easy to adapt. This script is not intended
# to work without modifications.
# NOTE: This script assumes you are running it from a directory which contains
# arcanist/, libphutil/, and phabricator/.
# NOTE: This script should be launched by the user running Phabricators
# it's usually not root.
ROOT
=
`
pwd
`
# You can hard-code the path here instead.
### UPDATE WORKING COPIES ######################################################
cd
$ROOT
/libphutil
git pull
cd
$ROOT
/arcanist
git pull
cd
$ROOT
/phabricator
git pull
### CYCLE WEB SERVER AND DAEMONS ###############################################
# Stop daemons.
$ROOT
/phabricator/bin/phd stop
# Stop the webserver (apache, nginx, lighttpd, etc). This command will differ
# depending on which system and webserver you are running: replace it with an
# appropriate command for your system.
sudo /etc/init.d/nginx stop
sudo /etc/init.d/php-fpm stop
# Upgrade the database schema. You may want to add the "--force" flag to allow
# this script to run noninteractively.
$ROOT
/phabricator/bin/storage upgrade --force
# Restart the webserver. As above, this depends on your system and webserver.
sudo /etc/init.d/nginx start
sudo /etc/init.d/php-fpm start
sudo /etc/init.d/mysqld restart
# Restart daemons.
$ROOT
/phabricator/bin/phd start
# To avoid lock contention, you should only run one copy of the PullLocal daemon
## $ROOT/phabricator/bin/phd launch RepositoryPullLocal
#rebuild the phabricator books
#$ROOT/phabricator/bin/diviner generate
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/vh/ne/3spqoy5rdfmgmslq
Default Alt Text
update_phabricator.sh (1 KB)
Attached To
Mode
T8125: Recent Activity is not recent after phabricator upgrade
Attached
Detach File
Event Timeline
Log In to Comment