Skip to content

Instantly share code, notes, and snippets.

@4lun
Created June 3, 2016 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 4lun/0b2e1b1fe02cf8505128022cfce06cb5 to your computer and use it in GitHub Desktop.
Save 4lun/0b2e1b1fe02cf8505128022cfce06cb5 to your computer and use it in GitHub Desktop.
Supervisor configuration for gogs (/etc/supervisor/conf.d/gogs.conf)
[program:gogs]
directory=/home/git/go/src/github.com/gogits/gogs/
command=/home/git/go/src/github.com/gogits/gogs/gogs web
autostart=true
autorestart=true
startsecs=10
stdout_logfile=/var/log/gogs/stdout.log
stdout_logfile_maxbytes=1MB
stdout_logfile_backups=10
stdout_capture_maxbytes=1MB
stderr_logfile=/var/log/gogs/stderr.log
stderr_logfile_maxbytes=1MB
stderr_logfile_backups=10
stderr_capture_maxbytes=1MB
environment = HOME="/home/git", USER="git"
user = git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment