Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1599777
update_phorge.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
update_phorge.sh
View Options
#!/bin/sh
set
-e
set
-x
# This is an example script for updating Phabricator. 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/ and phorge/. If you named them differently, you can change them
# here:
NAME_MAIN
=
"phorge"
NAME_ARC
=
"arcanist"
ROOT
=
`
pwd
`
# You can hard-code the path here instead.
### UPDATE WORKING COPIES ######################################################
cd
$ROOT
/
$NAME_ARC
git
pull
cd
$ROOT
/
$NAME_MAIN
git
pull
### CYCLE WEB SERVER AND DAEMONS ###############################################
# Stop daemons.
$ROOT
/
$NAME_MAIN
/bin/phd
stop
# If running the notification server, stop it.
# $ROOT/$NAME_MAIN/bin/aphlict 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.
# NOTE: If you're running php-fpm, you should stop it here too.
sudo
/etc/init.d/httpd
stop
# Upgrade the database schema. You may want to add the "--force" flag to allow
# this script to run noninteractively.
$ROOT
/
$NAME_MAIN
/bin/storage
upgrade
# Restart the webserver. As above, this depends on your system and webserver.
# NOTE: If you're running php-fpm, restart it here too.
sudo
/etc/init.d/httpd
start
# Restart daemons.
$ROOT
/
$NAME_MAIN
/bin/phd
start
# If running the notification server, start it.
# $ROOT/$NAME_MAIN/bin/aphlict start
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Wed, Jul 16, 9:15 AM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
363771
Default Alt Text
update_phorge.sh (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment