gin-simple-develop-template
From the previous project, slightly made some challenges, open the box to use, without submodules trouble Gin-based web backend api framework for business development
替换项目中import的 simple-develop-template
为项目名称
go mod init 项目名称
go env -w GOPRIVATE=*.gh.neting.cc
go mod tidy
#### 查看状态
supervisorctl status|grep goTestDemo
supervisorctl restart goTestDemo
#### conf文件路径
/etc/supervisord.d/conf/goTestDemo.conf
#### 某台服务
[xxx@test go-websites]# cat /etc/supervisord.d/conf/goTestDemo.conf
[program:goTestDemo]
directory = /home/www/demo
command = /home/www/demo/go-test -e test savePageDataCron
autostart = true
autorestart = true
loglevel = info
stdout_logfile = /var/log/supervisor/goTestDemo.log
stderr_logfile = /var/log/supervisor/goTestDemo_stderr.log
stdout_logfile_maxbytes = 30MB
stdout_logfile_backups = 3
stdout_events_enabled = false