u
This commit is contained in:
parent
c88ac80cdd
commit
43b99a7ce1
@ -1,7 +1,6 @@
|
||||
echo '>>>> Starting gitea ...'
|
||||
pushd /faronear/git/gitea
|
||||
cd /faronear/git/gitea
|
||||
# sudo it so that pm2 list shows it as root
|
||||
sudo pm2 start -x './gitea' --name gitea -- web
|
||||
popd
|
||||
|
||||
echo '>>>> Started gitea successfully!'
|
||||
echo '>>>> Started gitea.'
|
||||
|
@ -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.'
|
||||
|
@ -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
|
||||
|
||||
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
|
||||
popd
|
||||
cd /faronear/
|
||||
|
||||
echo 'Started yapi + https2http successfully!'
|
||||
echo 'Started yapi + https2http.'
|
||||
|
Loading…
Reference in New Issue
Block a user