mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Updated logger to be more robust
This commit is contained in:
parent
639d4a7a48
commit
28d4d5167b
6 changed files with 39 additions and 16 deletions
|
@ -7,7 +7,7 @@ at_exit do
|
|||
Kemal.config.port = opt_port.to_i
|
||||
end
|
||||
opts.on("-e ", "--environment ", "environment") do |env|
|
||||
env ? Kemal.config.env = env : "development"
|
||||
Kemal.config.env = env
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -17,9 +17,6 @@ at_exit do
|
|||
config.add_handler HTTP::StaticFileHandler.new("./public")
|
||||
|
||||
server = HTTP::Server.new(config.port, config.handlers)
|
||||
|
||||
server.ssl = config.ssl
|
||||
|
||||
puts "Kemal is ready to lead at #{config.scheme}://0.0.0.0:#{config.port}"
|
||||
server.listen
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue