use RAILS_ENV in unicorn.rb as RACK_ENV will be ignored