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:
Serdar Dogruyol 2016-04-11 16:22:00 +03:00
commit 25d1474e29
1 changed files with 2 additions and 0 deletions

View File

@ -2,11 +2,13 @@ require "spec"
require "kemal"
TIME_TO_SLEEP = 0.00001
APP_HOST_BINDING = "127.0.0.1"
APP_PORT = 1989
APP_ENV = "test"
APP_URL = "http://localhost:#{APP_PORT}"
Kemal.config.env = APP_ENV
Kemal.config.host_binding = APP_HOST_BINDING
Kemal.config.port = APP_PORT
def start