mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat(server/machine-learning): Configurable port (#1386)
* feat(server/machine-learning): Configurable port * feat(server/machine-learning): Address PR comments. * feat(server/machine-learning): Simplify Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
parent
b7d34079d9
commit
9d337bf4dc
4 changed files with 18 additions and 5 deletions
|
|
@ -5,7 +5,9 @@ import { Logger } from '@nestjs/common';
|
|||
async function bootstrap() {
|
||||
const app = await NestFactory.create(AppModule);
|
||||
|
||||
await app.listen(3003, () => {
|
||||
const port = Number(process.env.MACHINE_LEARNING_PORT) || 3003;
|
||||
|
||||
await app.listen(port, () => {
|
||||
if (process.env.NODE_ENV == 'development') {
|
||||
Logger.log(
|
||||
'Running Immich Machine Learning in DEVELOPMENT environment',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue