summaryrefslogtreecommitdiff
path: root/server/bin
diff options
context:
space:
mode:
authorNick Van Doorn <vandoorn.nick@gmail.com>2019-01-20 20:12:42 -0800
committerNick Van Doorn <vandoorn.nick@gmail.com>2019-01-20 20:12:42 -0800
commit32dc1dc50ac8af58c27b25b1fa9017f48cbd995f (patch)
treea50c2ad6ae60d733787eda1ffea75924ab1820c5 /server/bin
parentadd434f81bdfdedb6ad4897b3dc96ac291793f52 (diff)
Implement naive-server
Diffstat (limited to 'server/bin')
-rw-r--r--server/bin/index.ts10
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
+});