Add read config from yml

This commit is contained in:
Sdogruyol 2015-12-12 20:27:46 +02:00
parent 85a383b328
commit 58f9d8c590
2 changed files with 15 additions and 5 deletions

View file

@ -17,7 +17,7 @@ at_exit do
config = Kemal.config
logger = Kemal::Logger.new
config.add_handler logger
config.add_handler Kemal::StaticFileHandler.new("./public")
config.add_handler Kemal::StaticFileHandler.new(config.public_folder)
config.add_handler Kemal::Handler::INSTANCE
server = HTTP::Server.new(config.port, config.handlers)