diff options
author | Nick Van Doorn <vandoorn.nick@gmail.com> | 2019-01-20 20:12:42 -0800 |
---|---|---|
committer | Nick Van Doorn <vandoorn.nick@gmail.com> | 2019-01-20 20:12:42 -0800 |
commit | 32dc1dc50ac8af58c27b25b1fa9017f48cbd995f (patch) | |
tree | a50c2ad6ae60d733787eda1ffea75924ab1820c5 /server/bin | |
parent | add434f81bdfdedb6ad4897b3dc96ac291793f52 (diff) |
Implement naive-server
Diffstat (limited to 'server/bin')
-rw-r--r-- | server/bin/index.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/server/bin/index.ts b/server/bin/index.ts new file mode 100644 index 0000000..fdf1352 --- /dev/null +++ b/server/bin/index.ts @@ -0,0 +1,10 @@ +import { runServer } from "../src/server"; +import process from "process"; + +const port = +(process.env.PORT || 5000); + +runServer({ + httpPort: port, + wsPort: port + 1, + logger: console.log +}); |