把 gogs 和 http2https 的启动分拆到两个script里

This commit is contained in:
陆柯 2021-07-05 20:40:23 +08:00
parent 2c9eabb419
commit ba82a1379b
2 changed files with 7 additions and 6 deletions

7
serve-gogs.http2https.sh Executable file
View File

@ -0,0 +1,7 @@
echo '>>>> Starting http2https in pm2 ...'
cd /faronear/git/git.faronear.org
# sudo it so that pm2 list shows it as root
sudo pm2 start ./node_modules/sol.webserver/server.js --name git.http2https
cd /faronear/git
echo '>>>> Started http2https.'

View File

@ -10,10 +10,4 @@ cd /faronear/git/gogs # 如果在 /faronear/git 中运行 ./gogs/gogs导致
sudo pm2 start -x './gogs' --name git.gogs -- web sudo pm2 start -x './gogs' --name git.gogs -- web
cd /faronear/git cd /faronear/git
echo '>>>> Starting http2https in pm2 ...'
cd /faronear/git/git.faronear.org
# sudo it so that pm2 list shows it as root
sudo pm2 start ./node_modules/sol.webserver/server.js --name git.http2https
cd /faronear/git
echo '>>>> Started gogs.' echo '>>>> Started gogs.'