mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-24 01:18:39 -06:00
adjust: heroku port
This commit is contained in:
parent
0e9d036fe0
commit
35a65ddcd3
@ -119,10 +119,13 @@ function bootstrap() {
|
|||||||
|
|
||||||
const httpServer = configService.get<HttpServer>('SERVER');
|
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;
|
ServerUP.app = app;
|
||||||
const server = ServerUP[httpServer.TYPE];
|
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();
|
initWA();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user