Update for heroku run and nginx 1.6.0