mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2026-01-29 05:40:49 +03:00
add getStatus and cases
This commit is contained in:
@@ -3,10 +3,13 @@ import {initDb} from "./databases/databases";
|
||||
import {createServer} from "./app";
|
||||
import {Logger} from "./utils/logger";
|
||||
import {startAllCrons} from "./cronjob";
|
||||
import { getCommit } from "./utils/getCommit";
|
||||
|
||||
async function init() {
|
||||
await initDb();
|
||||
|
||||
(global as any).HEADCOMMIT = config.mode === "development" ? "development"
|
||||
: config.mode === "test" ? "test"
|
||||
: getCommit() as string;
|
||||
createServer(() => {
|
||||
Logger.info(`Server started on port ${config.port}.`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user