From fcff93c533ac978a21d3164caacae91821fad09c Mon Sep 17 00:00:00 2001 From: knotteye Date: Sun, 22 Sep 2019 17:12:49 -0500 Subject: [PATCH] Removed executable, added 'npm start' script. --- package.json | 3 +++ satyr | 3 --- src/controller.ts | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) delete mode 100755 satyr diff --git a/package.json b/package.json index 5f19329..729198c 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,9 @@ "description": "A livestreaming server.", "license": "AGPL-3.0", "author": "knotteye", + "scripts": { + "start": "node build/controller.js" + }, "repository": { "type": "git", "url": "https://gitlab.com/knotteye/satyr.git" diff --git a/satyr b/satyr deleted file mode 100755 index ee14b90..0000000 --- a/satyr +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env node -const satyr = require("./build/controller"); -satyr.boot(); diff --git a/src/controller.ts b/src/controller.ts index 1c03b08..6f2e811 100644 --- a/src/controller.ts +++ b/src/controller.ts @@ -40,4 +40,5 @@ function boot(): void{ mediaserver.boot(mediaconfig); ircd.boot(); } +boot(); export { boot }; \ No newline at end of file