mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-19 08:45:06 +00:00
configure nginx to run in container
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user