2017-12-18 02:22:09 +00:00
|
|
|
import { LogService } from "matrix-js-snippets";
|
|
|
|
import config from "./config";
|
|
|
|
import { DimensionStore } from "./db/DimensionStore";
|
|
|
|
import Webserver from "./api/Webserver";
|
2017-12-24 02:45:34 +00:00
|
|
|
import { CURRENT_VERSION } from "./version";
|
2017-12-18 02:22:09 +00:00
|
|
|
|
|
|
|
LogService.configure(config.logging);
|
2017-12-24 02:45:34 +00:00
|
|
|
LogService.info("index", "Starting dimension " + CURRENT_VERSION);
|
2017-12-18 02:22:09 +00:00
|
|
|
|
|
|
|
const webserver = new Webserver();
|
|
|
|
|
|
|
|
DimensionStore.updateSchema()
|
|
|
|
.then(() => webserver.start())
|
|
|
|
.then(() => {
|
|
|
|
LogService.info("index", "Dimension is ready!");
|
|
|
|
});
|