aws AMI layout

This commit is contained in:
Jan Prochazka
2024-10-18 13:32:17 +02:00
parent 3912a58127
commit adfc427d25
3 changed files with 9 additions and 0 deletions

View File

@@ -126,6 +126,10 @@ function start() {
const port = process.env.PORT || 3000;
logger.info(`DbGate API listening on port ${port} (docker build)`);
server.listen(port);
} else if (platformInfo.isAwsUbuntuLayout) {
const port = process.env.PORT || 80;
logger.info(`DbGate API listening on port ${port} (AWS AMI build)`);
server.listen(port);
} else if (platformInfo.isNpmDist) {
getPort({
port: parseInt(