feat: redesign match play and add broadcast tooling
This commit is contained in:
11
prod-server.ts
Normal file
11
prod-server.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { createServer } from 'node:http';
|
||||
import { handler } from './build/handler.js';
|
||||
import { attachSockets } from './src/lib/server/ws-attach.ts';
|
||||
|
||||
const port = Number(process.env.PORT || 3000);
|
||||
const host = process.env.HOST || '0.0.0.0';
|
||||
const server = createServer(handler);
|
||||
await attachSockets(server);
|
||||
server.listen(port, host, () => {
|
||||
console.log(`Vash Esports listening on ${host}:${port}`);
|
||||
});
|
||||
Reference in New Issue
Block a user