I'm not sure if RAILS_ENV is always set.  We may want a way to configure this instead.