Skip to content

Instantly share code, notes, and snippets.

@Antrikshy
Last active August 29, 2015 14:18
Show Gist options
  • Save Antrikshy/6fe992e06d8fbfa1948a to your computer and use it in GitHub Desktop.
Save Antrikshy/6fe992e06d8fbfa1948a to your computer and use it in GitHub Desktop.
Upstart config for Express.js app
# Goes in /etc/init/
description "Blah server"
start on startup
start on filesystem and started networking
stop on shutdown
respawn
chdir /home/username/folder
env NODE_ENV=production
env PORT=3000
exec node bin/www
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment