1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-05-21 22:33:32 +02:00
pigallery2/backend/index.ts

11 lines
191 B
TypeScript
Raw Normal View History

import * as cluster from "cluster";
import {Worker} from "./model/threading/Worker";
import {Server} from "./server";
if (cluster.isMaster) {
new Server();
} else {
Worker.process();
}