From 405c1968b7c1a552f658e89af83c866ac0f773c6 Mon Sep 17 00:00:00 2001 From: Yongmin Hong Date: Wed, 8 May 2024 18:29:57 +0900 Subject: [PATCH] phab-upgrade.sh: update Summary: and remove outdated info Signed-off-by: Yongmin Hong Test Plan: read the docs :tm: Reviewers: O1 revi & code reviewers, revi Reviewed By: O1 revi & code reviewers, revi Differential Revision: https://issuetracker.revi.xyz/D56 --- Deploying.wiki | 12 ------------ phab-upgrade.sh | 18 +++++++++++------- 2 files changed, 11 insertions(+), 19 deletions(-) delete mode 100644 Deploying.wiki diff --git a/Deploying.wiki b/Deploying.wiki deleted file mode 100644 index df97182..0000000 --- a/Deploying.wiki +++ /dev/null @@ -1,12 +0,0 @@ -== Deploying dot files == - -1. git clone https://gitlab.com/revi/dots. -2. cd dots -3. cp gitconfig.sample ~/.gitconfig -4. cp .gitaliases ~/.gitaliases - -=== If this device is gpg device === - -1. Install gnupg2 and gnupg. -2. Import the private key and public key. Importing keyring files are sufficient. -3. cp .gpg.conf ~/.gnupg/gpg.conf. \ No newline at end of file diff --git a/phab-upgrade.sh b/phab-upgrade.sh index 52d4960..026da0f 100644 --- a/phab-upgrade.sh +++ b/phab-upgrade.sh @@ -1,16 +1,20 @@ #!/bin/bash -cd /var/www/phab/phabricator -sudo -u www-data ./bin/phd stop +cd ~/sandbox +git pull origin master +cd /var/www/phorge/phorge +sudo service phorge-phd stop sudo service apache2 stop sudo -u www-data git checkout stable sudo -u www-data git pull origin stable -cd ../libphutil -sudo -u www-data git checkout stable -sudo -u www-data git pull origin stable +# cd ../libphutil +# sudo -u www-data git checkout stable +# sudo -u www-data git pull origin stable cd ../arcanist sudo -u www-data git checkout stable sudo -u www-data git pull origin stable -cd ../phabricator +cd /var/www/phorge/phorge/src/extensions +sudo -u www-data cp /home/revi/sandbox/PhabExt/PhabricatorCustomRobotsTxtController.php . +cd /var/www/phorge/phorge sudo -u www-data ./bin/storage upgrade -sudo -u www-data ./bin/phd start +sudo service phorge-phd start sudo service apache2 start