mirror of
https://github.com/gitpod-io/gitpod.git
synced 2025-12-08 17:36:30 +00:00
23 lines
753 B
TypeScript
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);
|
|
});
|