Nestjs Azure App Service Deployment

Needed to do a few things to get this working:

Modify main.js to allow for listing to environment variable for port number.

await app.listen(process.env.PORT || 3000);

Set the startup command on the App Service to

pm2 start dist/main.js --no-daemon

Reference