There can be multiple reasons why you are experiencing the loading issue. Have you checked, if the startup command is set correctly. You may check it at settings > configuration section of your webapp as shown in the following screenshot
See the following reference to see the startup command to be set for your webapp
expected values for the Startup
--please don't forget to upvote and Accept as answer if the reply is helpful--