diff --git a/lib/hanami/environment.rb b/lib/hanami/environment.rb
index <HASH>..<HASH> 100644
--- a/lib/hanami/environment.rb
+++ b/lib/hanami/environment.rb
@@ -458,8 +458,8 @@ module Hanami
     # @since 0.2.0
     # @api private
     def set_application_env_vars!
-      return unless defined?(Dotenv)
-      Dotenv.overload root.join(DEFAULT_DOTENV_ENV % environment)
+      return unless defined?(Dotenv) && (dotenv = root.join(DEFAULT_DOTENV_ENV % environment)).exist?
+      Dotenv.overload dotenv
     end
 
     # @since 0.1.0
diff --git a/test/environment_test.rb b/test/environment_test.rb
index <HASH>..<HASH> 100644
--- a/test/environment_test.rb
+++ b/test/environment_test.rb
@@ -3,7 +3,7 @@ require 'test_helper'
 describe Hanami::Environment do
   before do
     ENV['HANAMI_ENV']  = nil
-    ENV['RACK_ENV']   = nil
+    ENV['RACK_ENV']    = nil
     ENV['HANAMI_HOST'] = nil
     ENV['HANAMI_PORT'] = nil
Ensure to don't load .env.* files if they don't exist. Ref #<I>