RAILS_ENV is deprecated, try Rails.env instead.