Skip to content

Instantly share code, notes, and snippets.

@RedactedProfile
Forked from qharlie/gist:5271721
Last active August 29, 2015 14:14
Show Gist options
  • Save RedactedProfile/fd7f9dfe54afb4d74a8b to your computer and use it in GitHub Desktop.
Save RedactedProfile/fd7f9dfe54afb4d74a8b to your computer and use it in GitHub Desktop.
#!upstart
description "MyApp"
author "MyApp by charlie"
env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
respawn
start on runlevel [23]
stop on shutdown
script
export DISPLAY=:1
export NODE_ENV=production
exec authbind node /opt/deploy/myapp/app.js >> /var/log/myapp.log
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment