mirror of
https://github.com/informaticker/discord-jellyfin-bot.git
synced 2024-11-23 18:21:55 +01:00
✨ Add port env variable (#19)
This commit is contained in:
parent
46aa88e9b3
commit
4fc81e2b7c
@ -22,6 +22,7 @@ import { UpdatesModule } from './updates/updates.module';
|
||||
JELLYFIN_AUTHENTICATION_USERNAME: Joi.string().required(),
|
||||
JELLYFIN_AUTHENTICATION_PASSWORD: Joi.string().required(),
|
||||
UPDATER_DISABLE_NOTIFICATIONS: Joi.boolean(),
|
||||
PORT: Joi.number().min(1),
|
||||
}),
|
||||
}),
|
||||
ScheduleModule.forRoot(),
|
||||
|
@ -4,6 +4,6 @@ import { AppModule } from './app.module';
|
||||
async function bootstrap() {
|
||||
const app = await NestFactory.create(AppModule);
|
||||
app.enableShutdownHooks();
|
||||
await app.listen(3000);
|
||||
await app.listen(process.env.PORT || 3000);
|
||||
}
|
||||
bootstrap();
|
||||
|
Loading…
Reference in New Issue
Block a user