phab-upgrade.sh: update

Summary:
and remove outdated info

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: read the docs ™️

Reviewers: O1 revi & code reviewers, revi

Reviewed By: O1 revi & code reviewers, revi

Differential Revision: https://issuetracker.revi.xyz/D56
This commit is contained in:
revi 2024-05-08 18:29:57 +09:00
parent 32914edc14
commit 405c1968b7
Signed by: revi
GPG key ID: 1EB4F6CEEA100E94
2 changed files with 11 additions and 19 deletions

View file

@ -1,12 +0,0 @@
== Deploying dot files ==
1. <code>git clone https://gitlab.com/revi/dots</code>.
2. <code>cd dots</code>
3. <code>cp gitconfig.sample ~/.gitconfig</code>
4. <code>cp .gitaliases ~/.gitaliases</code>
=== 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. <code>cp .gpg.conf ~/.gnupg/gpg.conf</code>.

View file

@ -1,16 +1,20 @@
#!/bin/bash #!/bin/bash
cd /var/www/phab/phabricator cd ~/sandbox
sudo -u www-data ./bin/phd stop git pull origin master
cd /var/www/phorge/phorge
sudo service phorge-phd stop
sudo service apache2 stop sudo service apache2 stop
sudo -u www-data git checkout stable sudo -u www-data git checkout stable
sudo -u www-data git pull origin stable sudo -u www-data git pull origin stable
cd ../libphutil # cd ../libphutil
sudo -u www-data git checkout stable # sudo -u www-data git checkout stable
sudo -u www-data git pull origin stable # sudo -u www-data git pull origin stable
cd ../arcanist cd ../arcanist
sudo -u www-data git checkout stable sudo -u www-data git checkout stable
sudo -u www-data git pull origin 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/storage upgrade
sudo -u www-data ./bin/phd start sudo service phorge-phd start
sudo service apache2 start sudo service apache2 start