Created
February 22, 2016 20:57
-
-
Save mariohmol/34d562829e6c61178bba to your computer and use it in GitHub Desktop.
Supervisor conf for a node app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[supervisord] | |
logfile=/tmp/supervisord.log ; (main log file;default $CWD/supervisord.log) | |
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB) | |
logfile_backups=10 ; (num of main logfile rotation backups;default 10) | |
loglevel=info ; (log level;default info; others: debug,warn,trace) | |
[program:myapp] | |
command=/usr/bin/node . | |
process_name=%(program_name)s | |
numprocs=1 | |
directory=/home/myuser/myapp | |
stderr_logfile = /var/log/supervisord/myapp-stderr.log | |
stdout_logfile = /var/log/supervisord/myapp-stdout.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment