sysconfig/serve-git.sh
2021-05-10 15:02:24 +08:00

14 lines
536 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

echo 'Starting gogs git service in screen...'
#screen -dmS gogs
#screen -S gogs -X stuff "/faronear/gogs/gogs web\n"
cd /faronear/git/gogs # 如果在 /faronear/git 中运行 ./gogs/gogs导致额外生成 /faronear/git/data 目录。
sudo pm2 start -x './gogs' -n git.gogs -- web # sudo it so that pm2 list shows it as root
cd /faronear
echo 'Starting http2https web service in pm2...'
cd /faronear/git/git.faronear.org
sudo pm2 start server.js --name git.http # sudo it so that pm2 list shows it as root
cd /faronear
echo 'Done!'