Manuel Alejandro de Brito Fontes e7f9a1fa41 [server] Add support for typescript map
2021-08-11 15:26:10 +02:00

24 lines
768 B
TypeScript

/**
* Copyright (c) 2020 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL).
* See License-AGPL.txt in the project root for license information.
*/
import 'source-map-support/register';
import { start } from "./init";
import { log } from "@gitpod/gitpod-protocol/lib/util/logging";
import { Container } from "inversify";
import { productionContainerModule } from "./container-module";
import { dbContainerModule } from "@gitpod/gitpod-db/lib/container-module";
const container = new Container();
container.load(productionContainerModule);
container.load(dbContainerModule);
start(container)
.catch(err => {
log.error("Error during startup or operation. Exiting.", err);
process.exit(1);
});