adjust: heroku port

This commit is contained in:
freonzx 2024-06-07 19:24:45 -03:00
parent 0e9d036fe0
commit 35a65ddcd3

View File

@ -119,10 +119,13 @@ function bootstrap() {
const httpServer = configService.get<HttpServer>('SERVER');
// Use the PORT environment variable set by Heroku, or fall back to the configured port
const port = process.env.PORT || httpServer.PORT;
ServerUP.app = app;
const server = ServerUP[httpServer.TYPE];
server.listen(httpServer.PORT, () => logger.log(httpServer.TYPE.toUpperCase() + ' - ON: ' + httpServer.PORT));
server.listen(port, () => logger.log(httpServer.TYPE.toUpperCase() + ' - ON: ' + port));
initWA();