Don't overried env unless KEMAL_ENV is explicily set
This commit is contained in:
parent
6280af2e40
commit
0a11a1aee9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue