diff --git a/serve-gitea.sh b/serve-gitea.sh index 099635d..8429a9a 100755 --- a/serve-gitea.sh +++ b/serve-gitea.sh @@ -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.' diff --git a/serve-gogs.sh b/serve-gogs.sh index 15be6f5..53fd705 100755 --- a/serve-gogs.sh +++ b/serve-gogs.sh @@ -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.' diff --git a/serve-yapi.sh b/serve-yapi.sh index 29f8c49..fcce489 100755 --- a/serve-yapi.sh +++ b/serve-yapi.sh @@ -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.'