Files
workavia-drive/tdrive/backend/node/src/server.ts
T
Montassar Ghanmy e0615fa867 📁 Changed TDrive root folder (#16)
📁 Changed TDrive root folder
2023-04-11 10:04:29 +01:00

17 lines
426 B
TypeScript

import * as Sentry from "@sentry/node";
import { TdrivePlatform } from "./core/platform/platform";
import config from "./core/config";
import tdrive from "./tdrive";
if (config.get("sentry.dsn")) {
Sentry.init({
dsn: config.get("sentry.dsn"),
tracesSampleRate: 1.0,
});
}
const launch = async (): Promise<TdrivePlatform> => tdrive.run(config.get("services"));
// noinspection JSIgnoredPromiseFromCall
launch();