This commit is contained in:
luk.lu
2019-10-09 13:35:37 +08:00
parent 517634b735
commit a63b8df1f4
2 changed files with 5 additions and 5 deletions

View File

@@ -1,13 +1,13 @@
echo 'Starting gogs git service in screen...'
#screen -dmS gogs
#screen -S gogs -X stuff "/root/gogs/gogs web\n"
cd ~/git/
cd /root/git
sudo pm2 start -x './gogs/gogs' -n git.gogs -- web # sudo it so that pm2 list shows it as root
cd ~
cd /root
echo 'Starting http2https web service in pm2...'
cd ~/git/www
cd /root/git/git.faronear.org
sudo pm2 start server.js --name git.http2https # sudo it so that pm2 list shows it as root
cd ~/
cd /root
echo 'Done!'