Bind to 127.0.0.1 to prevent firewall requests on OS X

This commit is contained in:
Jerome Gravel-Niquet 2016-04-11 08:48:22 -04:00
parent 56d6941412
commit a46bc3d78c
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