mirror of
https://github.com/immich-app/immich.git
synced 2025-06-21 14:31:03 -04:00
* infra: switch port to 3003 for machine learning container fixes #289 * Changed port of machine-learning-endpoint to match with new port Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
26 lines
631 B
TypeScript
26 lines
631 B
TypeScript
import { NestFactory } from '@nestjs/core';
|
|
import { AppModule } from './app.module';
|
|
import { Logger } from '@nestjs/common';
|
|
|
|
async function bootstrap() {
|
|
const app = await NestFactory.create(AppModule);
|
|
|
|
await app.listen(3003, () => {
|
|
if (process.env.NODE_ENV == 'development') {
|
|
Logger.log(
|
|
'Running Immich Machine Learning in DEVELOPMENT environment',
|
|
'IMMICH MICROSERVICES',
|
|
);
|
|
}
|
|
|
|
if (process.env.NODE_ENV == 'production') {
|
|
Logger.log(
|
|
'Running Immich Machine Learning in PRODUCTION environment',
|
|
'IMMICH MICROSERVICES',
|
|
);
|
|
}
|
|
});
|
|
}
|
|
|
|
bootstrap();
|