Changed default mode to development

This commit is contained in:
Sdogruyol 2015-11-17 21:43:05 +02:00
parent 79ef2f30f7
commit bde69e1cdb
4 changed files with 2 additions and 4 deletions

View file

@ -7,7 +7,7 @@ at_exit do
Kemal.config.port = opt_port.to_i
end
opts.on("-e ", "--environment ", "environment") do |env|
Kemal.config.env = env
env ? Kemal.config.env = env : "development"
end
end

View file

@ -1,5 +1,4 @@
module Kemal
class Config
INSTANCE = Config.new
HANDLERS = [] of HTTP::Handler

View file

@ -33,5 +33,4 @@ class Kemal::Logger < HTTP::Handler
"#{(millis * 1000).round(2)}µs"
end
end