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