This should probably use `base.environment` rather than `ENV['RACK_ENV']`.