add getStatus and cases

This commit is contained in:
Michael C
2021-09-01 16:52:41 -04:00
parent d6a986d6cf
commit e12724af15
6 changed files with 58 additions and 1 deletions

View File

@@ -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}.`);