configure nginx to run in container

This commit is contained in:
Evan
2025-03-02 09:39:36 -08:00
parent a6ab4da694
commit 38365fd9d0
9 changed files with 138 additions and 131 deletions
+8
View File
@@ -308,6 +308,14 @@ export function startWorker() {
server.listen(PORT, () => {
console.log(`Worker ${workerId} running on http://localhost:${PORT}`);
console.log(`Handling requests with path prefix /w${workerId}/`);
// Signal to the master process that this worker is ready
if (process.send) {
process.send({
type: "WORKER_READY",
workerId: workerId,
});
console.log(`Worker ${workerId} signaled ready state to master`);
}
});
// Global error handler