mirror of
https://git.waldn.net/git/knotteye/satyr.git
synced 2025-10-20 11:41:10 +00:00
Add configurability to cluster option
This commit is contained in:
@@ -4,12 +4,13 @@ import {init as initHTTP} from "./http";
|
||||
import {init as clean} from "./cleanup";
|
||||
import {init as initChat} from "./chat";
|
||||
import { config } from "./config";
|
||||
import { execFile } from "child_process";
|
||||
|
||||
async function run() {
|
||||
await initDB();
|
||||
await clean();
|
||||
await initHTTP();
|
||||
await initRTMP();
|
||||
config['rtmp']['cluster'] ? execFile(process.cwd()+'/node_modules/.bin/ts-node' [process.cwd()+'src/cluster.ts']) : await initRTMP();
|
||||
await initChat();
|
||||
console.log(`Satyr v${config['satyr']['version']} ready`);
|
||||
}
|
||||
|
Reference in New Issue
Block a user