diff --git a/script/server b/script/server index b41c6b85..b1988a0d 100755 --- a/script/server +++ b/script/server @@ -123,7 +123,7 @@ var types = { txt: 'text/plain' }; -http.createServer(function(req, res) { +server = http.createServer(function(req, res) { var pathname = url.parse(req.url).pathname; var route = routes[pathname]; if (route) { @@ -140,4 +140,8 @@ http.createServer(function(req, res) { } }); } -}).listen(port); +}); + +console.warn("Started test server on localhost:" + port); +server.listen(port); +