Merge pull request #1 from jeromegn/patch-1
Bind to 127.0.0.1 to prevent firewall requests on OS X
This commit is contained in:
commit
25d1474e29
1 changed files with 2 additions and 0 deletions
|
@ -2,11 +2,13 @@ require "spec"
|
||||||
require "kemal"
|
require "kemal"
|
||||||
|
|
||||||
TIME_TO_SLEEP = 0.00001
|
TIME_TO_SLEEP = 0.00001
|
||||||
|
APP_HOST_BINDING = "127.0.0.1"
|
||||||
APP_PORT = 1989
|
APP_PORT = 1989
|
||||||
APP_ENV = "test"
|
APP_ENV = "test"
|
||||||
APP_URL = "http://localhost:#{APP_PORT}"
|
APP_URL = "http://localhost:#{APP_PORT}"
|
||||||
|
|
||||||
Kemal.config.env = APP_ENV
|
Kemal.config.env = APP_ENV
|
||||||
|
Kemal.config.host_binding = APP_HOST_BINDING
|
||||||
Kemal.config.port = APP_PORT
|
Kemal.config.port = APP_PORT
|
||||||
|
|
||||||
def start
|
def start
|
||||||
|
|
Loading…
Reference in a new issue