1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2025-01-14 14:43:17 +08:00
pigallery2/backend/index.ts

10 lines
214 B
TypeScript
Raw Normal View History

import * as cluster from "cluster";
if (cluster.isMaster) {
2017-07-25 16:14:35 +02:00
const Server = require("./server").Server;
new Server();
} else {
2017-07-25 16:14:35 +02:00
const Worker = require("./model/threading/Worker").Worker;
Worker.process();
}