Using port from env

This commit is contained in:
Selim Mustafaev 2025-02-22 13:23:54 +00:00
parent 9afc865717
commit 85fce8f8da

View File

@ -43,7 +43,7 @@ if(process.env.NODE_ENV == 'production') {
key: readFileSync(process.env.PRIVATE_KEY_PATH),
cert: readFileSync(process.env.CERT_PATH)
}, app);
httpsServer.listen(8443);
httpsServer.listen(process.env.LISTEN_PORT);
} else {
app.listen(3000);
}