* 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: crystal:
- latest - latest
- nightly - nightly
script:
- crystal spec
- crystal spec --release --no-debug
matrix: matrix:
allow_failures: allow_failures:
- crystal: nightly - crystal: nightly

View file

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