Hi @Anonymous ,
Make sure your app is listening on the PORT
environment variable? e.g.
const port = process.env.PORT || 3000
app.listen(port, () => {
console.log(`Example app listening at http://localhost:${port}`)
})
The platform should automatically run your start
script from package.json but just to be sure, you can set the startup via az webapp config set --resource-group <resource-group-name> --name <app-name> --startup-file "npm run start"
; see https://learn.microsoft.com/en-us/azure/app-service/configure-language-nodejs?pivots=platform-linux for more details. Also check your container logs at https://<app-name>.scm.azurewebsites.net/api/logs/docker for any issues during startup that may have occurred during container startup.