How to force NginX into production mode in Rails 4?
I am running a Rails 4 app on a VPS with Ubuntu, NginX and Unicorn. When I SSL into my server and update the app via git or run rake tasks on the database, my app always switches to `development` mode and I can't get it into `production` mode. Typing `RAILS_ENV=production` seems to have no effect at all. When I do $ rails console $ Rails.env I get > --> development all the time. What must I do to force NginX into `production` mode? Actually, I don't want Nginx to **ever** run in `development` mode. How can this be achieved? Thanks for any help.