2022-12-08 13:05:19 -03:00

23 lines
753 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);
});