feat: microservices be gone (#9551)

* feat: microservices be gone and api is a worker now too

* chore: remove very old startup scripts, surely nobody is using these anymore, right?

right?....
This commit is contained in:
Zack Pollard
2024-05-17 14:44:30 +01:00
committed by GitHub
parent ff52300624
commit 85aca2bb54
12 changed files with 206 additions and 190 deletions

View File

@@ -8,7 +8,7 @@ import { otelSDK } from 'src/utils/instrumentation';
const host = process.env.HOST;
export async function bootstrapMicroservices() {
export async function bootstrap() {
otelSDK.start();
const port = Number(process.env.MICROSERVICES_PORT) || 3002;
@@ -25,7 +25,7 @@ export async function bootstrapMicroservices() {
}
if (!isMainThread) {
bootstrapMicroservices().catch((error) => {
bootstrap().catch((error) => {
console.error(error);
process.exit(1);
});