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

View File

@ -1,7 +1,6 @@
echo '>>>> Starting gitea ...' echo '>>>> Starting gitea ...'
pushd /faronear/git/gitea cd /faronear/git/gitea
# sudo it so that pm2 list shows it as root # sudo it so that pm2 list shows it as root
sudo pm2 start -x './gitea' --name gitea -- web sudo pm2 start -x './gitea' --name gitea -- web
popd
echo '>>>> Started gitea successfully!' echo '>>>> Started gitea.'

View File

@ -5,15 +5,15 @@
# 服务化方案2: pm2 # 服务化方案2: pm2
echo '>>>> Starting gogs in 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 it so that pm2 list shows it as root
sudo pm2 start -x './gogs' --name git.gogs -- web sudo pm2 start -x './gogs' --name git.gogs -- web
popd cd /faronear/git
echo '>>>> Starting http2https in pm2 ...' 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 it so that pm2 list shows it as root
sudo pm2 start ./node_modules/sol.webserver/server.js --name git.http2https sudo pm2 start ./node_modules/sol.webserver/server.js --name git.http2https
popd cd /faronear/git
echo '>>>> Started gogs successfully!' echo '>>>> Started gogs.'

View File

@ -2,8 +2,8 @@ echo 'Starting yapi ...'
sudo pm2 start "/faronear/fon/yapi/vendors/server/app.js" --name yapi # sudo it so that pm2 list shows it as root sudo pm2 start "/faronear/fon/yapi/vendors/server/app.js" --name yapi # sudo it so that pm2 list shows it as root
echo 'Starting https2http proxy ...' echo 'Starting https2http proxy ...'
pushd /faronear/fon/yapi.faronear.org cd /faronear/fon/yapi.faronear.org
sudo pm2 start ./node_modules/sol.webserver/server.js --name yapi.https2http # sudo it so that pm2 list shows it as root sudo pm2 start ./node_modules/sol.webserver/server.js --name yapi.https2http # sudo it so that pm2 list shows it as root
popd cd /faronear/
echo 'Started yapi + https2http successfully!' echo 'Started yapi + https2http.'