/etc/supervisor/conf.d/site.conf
[program:site]
command=/usr/local/bin/node app.js
directory=/var/www/site.com/www/current/
user=nobody
autostart=true
autorestart=true
startretries=3
stdout_logfile=/var/www/site.com/www/shared/log/server.log
stdout_logfile_maxbytes=1MB
stdout_logfile_backups=10
stderr_logfile=/var/www/site.com/www/shared/log/error.log
stderr_logfile_maxbytes=1MB
stderr_logfile_backups=10
stopsignal=TERM
environment=NODE_ENV=production