mirror of
https://github.com/immich-app/immich.git
synced 2025-01-07 20:36:48 +01:00
ac0ad98b55
* Fixed problem with docker-compose not updating new files in the multi-stage build. * Update readme with a new screenshot
24 lines
793 B
TypeScript
24 lines
793 B
TypeScript
import { Logger } from '@nestjs/common';
|
|
import { NestFactory } from '@nestjs/core';
|
|
import { NestExpressApplication } from '@nestjs/platform-express';
|
|
import { AppModule } from './app.module';
|
|
import { RedisIoAdapter } from './middlewares/redis-io.adapter.middleware';
|
|
|
|
async function bootstrap() {
|
|
const app = await NestFactory.create<NestExpressApplication>(AppModule);
|
|
|
|
app.set('trust proxy');
|
|
|
|
app.useWebSocketAdapter(new RedisIoAdapter(app));
|
|
|
|
await app.listen(3000, () => {
|
|
if (process.env.NODE_ENV == 'development') {
|
|
Logger.log('Running Immich Server in DEVELOPMENT environment', 'IMMICH SERVER');
|
|
}
|
|
|
|
if (process.env.NODE_ENV == 'production') {
|
|
Logger.log('Running Immich Server in PRODUCTION environment', 'IMMICH SERVER');
|
|
}
|
|
});
|
|
}
|
|
bootstrap();
|