Clone the repository if it doesn't exist, ensure its uptodate.
Add default attributes.
Install node dependencies and set up start script.
Ensure redis is installed.
Create the log and pids folders.
Add production-stop template.
Install the nginx site.
Include the hostname in the nginx configuration.