Last active
August 29, 2015 14:18
-
-
Save Antrikshy/6fe992e06d8fbfa1948a to your computer and use it in GitHub Desktop.
Upstart config for Express.js 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
# 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