fix(server): library folder missing on new install (#2597)

This commit is contained in:
Jason Rasmussen
2023-05-28 21:48:07 -04:00
committed by GitHub
parent ffe397247e
commit caba462703
3 changed files with 17 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ import {
MACHINE_LEARNING_ENABLED,
SearchService,
SERVER_VERSION,
StorageService,
} from '@app/domain';
import { RedisIoAdapter } from '@app/infra';
import { Logger } from '@nestjs/common';
@@ -72,6 +73,8 @@ async function bootstrap() {
customSiteTitle: 'Immich API Documentation',
});
app.get(StorageService).init();
await app.listen(serverPort, () => {
if (process.env.NODE_ENV == 'development') {
// Generate API Documentation only in development mode