I have a simple node.js app that runs a discord bot using discord.js library. This node app does not require any request or query to run, but when I deployed it to the Azure App Services on a Linux environment, it starts perfectly and then shuts down in a few seconds with an error saying - Container didn't respond to HTTP pings on port: 8080, failing site start.
I just added express and made the app respond with "Hello World" on HTTP ping by listening to 8080 port. Now there is no such error and it runs fine.
So is there any other fix for this without needing to listen to port 8080?