mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
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:
parent
ff52300624
commit
85aca2bb54
12 changed files with 206 additions and 190 deletions
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue