From ba82a1379b28429be68562c5bdfdc92c7533e2e1 Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Mon, 5 Jul 2021 20:40:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=8A=20gogs=20=E5=92=8C=20http2https=20?= =?UTF-8?q?=E7=9A=84=E5=90=AF=E5=8A=A8=E5=88=86=E6=8B=86=E5=88=B0=E4=B8=A4?= =?UTF-8?q?=E4=B8=AAscript=E9=87=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- serve-gogs.http2https.sh | 7 +++++++ serve-gogs.sh | 6 ------ 2 files changed, 7 insertions(+), 6 deletions(-) create mode 100755 serve-gogs.http2https.sh diff --git a/serve-gogs.http2https.sh b/serve-gogs.http2https.sh new file mode 100755 index 0000000..48103c2 --- /dev/null +++ b/serve-gogs.http2https.sh @@ -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.' diff --git a/serve-gogs.sh b/serve-gogs.sh index 53fd705..19e0314 100755 --- a/serve-gogs.sh +++ b/serve-gogs.sh @@ -10,10 +10,4 @@ cd /faronear/git/gogs # 如果在 /faronear/git 中运行 ./gogs/gogs,导致 sudo pm2 start -x './gogs' --name git.gogs -- web 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.'