mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
10 lines
205 B
TypeScript
10 lines
205 B
TypeScript
import recluster = require('recluster');
|
|
import path = require('path');
|
|
|
|
const cluster = recluster(path.join(__dirname, 'server.js'));
|
|
cluster.run();
|
|
|
|
process.on('SIGUSR2', () => {
|
|
cluster.reload();
|
|
});
|