(wherever it says url.com, use your server's domain or IP)
Login to new server as root, then add a deploy user
sudo useradd --create-home -s /bin/bash deploy sudo adduser deploy sudo sudo passwd deploy
And Update the new password
Deploying a node app with Forever is great...until your server restarts unexpectedly. Then your app stops running and you have to re-deploy.
To get around this, we're going to run our node app as an Upstart service. Upstart services are great, because, once started, the system auto-restarts them if they fail, or if the server restarts.
###Step 1: Create a service for your node app
service node-app start
##Setup your server (this would ideally be done with automated provisioning)
npm install -g forever
npm install -g flightplan
npm install flightplan --save-dev