- Create non-root user for SSH and running node (https://www.digitalocean.com/community/tutorials/how-to-add-and-delete-users-on-an-ubuntu-14-04-vps)
- Run node on port 3000 instead of 80
Change the
listen(80)
portion of the script.js file tolisten(3000)
. - Install nginx and use as proxy to port 3000
- Install "forever" node module.
- Create @restart cron job for forever
Last active
September 3, 2015 22:30
-
-
Save dudewheresmycode/1a9b606d8afc95e718c1 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment