apt-get install nginx
- see nginx config file below
- see nginx upstart config below
- see unicorn (mongoid) config file below
- see unicorn upstart config below
- http://tomkersten.com/articles/nginx-unicorn-rvm-server-setup/
In case the user home is encrypted it's not possible to have unicorn autostartet!!