Skip to content

Instantly share code, notes, and snippets.

@jcpst
Last active August 29, 2015 14:12
Show Gist options
  • Save jcpst/97e8a5913060d4b45ecf to your computer and use it in GitHub Desktop.
Save jcpst/97e8a5913060d4b45ecf to your computer and use it in GitHub Desktop.
up and running with express

redirect port 80 to 3000

sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3000

use forever

forever start --minUptime 1000 --spinSleepTime 1000 ./bin/www

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment