checking RAILS_ENV to resolve install task