mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-09-04 16:12:11 +00:00
16 lines
510 B
TypeScript
16 lines
510 B
TypeScript
import { LogService } from "matrix-js-snippets";
|
|
import config from "./config";
|
|
import { DimensionStore } from "./db/DimensionStore";
|
|
import Webserver from "./api/Webserver";
|
|
import { CURRENT_VERSION } from "./version";
|
|
|
|
LogService.configure(config.logging);
|
|
LogService.info("index", "Starting dimension " + CURRENT_VERSION);
|
|
|
|
const webserver = new Webserver();
|
|
|
|
DimensionStore.updateSchema()
|
|
.then(() => webserver.start())
|
|
.then(() => {
|
|
LogService.info("index", "Dimension is ready!");
|
|
}); |