From 00e00ad7495e437d0cd50fcd6e4c560939fa4dbb Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 17 Feb 2017 21:39:44 +0000 Subject: [PATCH] export server --- src/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 3c18f8f..6aacc17 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,11 +8,10 @@ console.log("Starting Server..."); const ARGS = getArgs(); const app = createServer(ARGS); -const server = app.listen(ARGS.port, function () { +export const server = app.listen(ARGS.port, function () { const port = server.address().port; console.log("Server started on port " + port); if (ARGS.open) { open('http://0.0.0.0:' + port); } }); -