```ruby
require 'dotenv'

if %w[development test].include?(ENV['RACK_ENV'])
  Dotenv.load(
    ".env.#{ENV['RACK_ENV']}.local",
    '.env.local',
    ".env.#{ENV['RACK_ENV']}",
    '.env'
  )
end
```

Load Dotenv in dev & test envs only
user
```ruby
if %w[development test].include?(ENV['RACK_ENV'])
  require 'dotenv'

  Dotenv.load(
    ".env.#{ENV['RACK_ENV']}.local",
    '.env.local',
    ".env.#{ENV['RACK_ENV']}",
    '.env'
  )
end
```
assistant