Don't overried env unless KEMAL_ENV is explicily set

This commit is contained in:
sdogruyol 2016-09-02 15:18:26 +03:00
parent 6280af2e40
commit 0a11a1aee9

View file

@ -50,7 +50,7 @@ module Kemal
end
def read_env
@config.env = ENV.fetch("KEMAL_ENV", "development")
@config.env = ENV["KEMAL_ENV"] if ENV.has_key?("KEMAL_ENV")
end
end
end