* fix for #399

* updating travis

* added without release back in

* added no debug to get around llvm issue
This commit is contained in:
Cris Ward 2017-09-29 07:25:26 +01:00 committed by Serdar Dogruyol
parent a27e8859a6
commit 8cf3f67594
2 changed files with 10 additions and 1 deletions

View file

@ -2,6 +2,11 @@ language: crystal
crystal:
- latest
- nightly
script:
- crystal spec
- crystal spec --release --no-debug
matrix:
allow_failures:
- crystal: nightly

View file

@ -8,11 +8,15 @@ require "./kemal/helpers/*"
module Kemal
# Overload of self.run with the default startup logging
def self.run(port : Int32? = nil)
def self.run(port : Int32?)
self.run port do
log "[#{config.env}] Kemal is ready to lead at #{config.scheme}://#{config.host_binding}:#{config.port}"
end
end
# Overload of self.run without port - fixex #399
def self.run
self.run(nil)
end
# Overload of self.run to allow just a block
def self.run(&block)