Azure Web App on Linux: “Error: Container didn't respond to HTTP pings on port: 8080” - when using: “start”: “pm2 start server.js”

后端 未结 3 709
-上瘾入骨i
-上瘾入骨i 2021-01-13 15:31

My App Service Linux instance crashes if my node app is using the start script: \"start\": \"pm2 start server.js\":

2019-04-15 11:36:34.432 ERRO         


        
3条回答
  •  北荒
    北荒 (楼主)
    2021-01-13 15:43

    Try adding the application setting PORT with the value of whatever port your app is listening on.

    Ref: https://github.com/MicrosoftDocs/azure-docs/issues/34451

提交回复
热议问题