Skip to content

Commit

Permalink
fix for #399 (#407)
Browse files Browse the repository at this point in the history
* fix for #399

* updating travis

* added without release back in

* added no debug to get around llvm issue
  • Loading branch information
crisward authored and sdogruyol committed Sep 29, 2017
1 parent a27e885 commit 8cf3f67
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ language: crystal
crystal:
- latest
- nightly

script:
- crystal spec
- crystal spec --release --no-debug

matrix:
allow_failures:
- crystal: nightly
6 changes: 5 additions & 1 deletion src/kemal.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8cf3f67

Please sign in to comment.