Forgot about bundle

This commit is contained in:
Rory&
2025-12-20 22:04:43 +01:00
parent 0b87ed9146
commit 55d75824d2
+5
View File
@@ -29,6 +29,8 @@ import { CDNServer } from "@spacebar/cdn";
import express from "express";
import { green, bold } from "picocolors";
import { Config, initDatabase } from "@spacebar/util";
import fs from "fs";
import cluster from "cluster";
const app = express();
const server = http.createServer();
@@ -75,6 +77,9 @@ async function main() {
await new Promise((resolve) => server.listen({ port }, () => resolve(undefined)));
await Promise.all([api.start(), cdn.start(), gateway.start(), webrtc.start()]);
if (fs.existsSync("/proc/self/comm")) fs.writeFileSync("/proc/self/comm", `spacebar-bundle-${cluster.worker ? cluster.worker.id : port}`);
process.title = `sb-bundle-${cluster.worker ? cluster.worker.id : port}`;
console.log(`[Server] ${green(`Listening on port ${bold(port)}`)}`);
}