mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
* fix for #399 * updating travis * added without release back in * added no debug to get around llvm issue
This commit is contained in:
parent
a27e8859a6
commit
8cf3f67594
2 changed files with 10 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue