This commit is contained in:
Luk Lu
2021-07-04 09:02:56 +08:00
parent c88ac80cdd
commit 43b99a7ce1
3 changed files with 10 additions and 11 deletions

View File

@@ -5,15 +5,15 @@
# 服务化方案2: pm2
echo '>>>> Starting gogs in pm2 ...'
pushd /faronear/git/gogs # 如果在 /faronear/git 中运行 ./gogs/gogs导致额外生成 /faronear/git/data 目录。
cd /faronear/git/gogs # 如果在 /faronear/git 中运行 ./gogs/gogs导致额外生成 /faronear/git/data 目录。
# sudo it so that pm2 list shows it as root
sudo pm2 start -x './gogs' --name git.gogs -- web
popd
cd /faronear/git
echo '>>>> Starting http2https in pm2 ...'
pushd /faronear/git/git.faronear.org
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
popd
cd /faronear/git
echo '>>>> Started gogs successfully!'
echo '>>>> Started gogs.'