sysconfig/gogs-run.sh

14 lines
462 B
Bash
Executable File
Raw Permalink 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.

# 服务化方案1: screen
#echo '::*** Starting gogs in screen ...'
#screen -dmS gogs
#screen -S gogs -X stuff "/faronear/gogs/gogs web\n"
# 服务化方案2: pm2
echo '::*** Starting gogs in pm2 ...'
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
cd /faronear/git
echo '::*** Started gogs.'