Nginx config file for non-ssl Rails site

* Doesn't have any SSL section; meant to
run behind an SSL enabled Apache server
Symlink into sites-enabled and restart nginx
Don't install node from a PPA

* Use an official repository instead
bail is not available to Plow recipes
-z operator
use different var name & restart nginx
escape the $ so it's not substitued
Log app nginx access/errors to an Nginx folder

* This lets us restart Nginx without running a
Capistrano task
Escaping $1

* So Plow doesn't insert an ENV var
here
Install packaged version of Nginx
copied over a bunch of the stuff from our source compile of nginx
cause I can't spell
Don't create nginx user if they already exist
Postgres listens on hostname and IP

* By default it only listens on localhost
* Now listens on \$SERVER (env var) and the
IP address
Only listen on $SERVER if it's set
Clone the app
Create a 'user' folder instead of an 'app' folder

* This is so Cap can do a git clone without issues
* Also don't need to check if dir exists with -p option on mkdir
* Also change group on folder
Handy utilities we use on the servers
set JAVA_HOME properly

* Use double quotes so there is variable expansion
* Go back to `JAVA_HOME` so we don't have to change
the current .env.production file
Go back to deploying to /srv/app_name

* Mistakenly thought that was getting permissions
issues when doing a git clone to /srv/app_name
* Reverting these changes