Python Web App

Vicente Antonio Gamez 1 Reputation point
2022-07-15T06:23:12.43+00:00

Hello everybody

I am learning how to use Azure and I've been trying to deploy my web app using Flask. It says it has been deployed succesfull but I don't see my project in the web page.

This is what it says:
221023-screenshot-2022-07-15-12018-am.png

But I only see this on the explorer:
221012-screenshot-2022-07-15-12131-am.png

I tried using GitHub, Local Git and DevOps but still not working. If someone can help me please let me know,

greetings

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,895 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 21,691 Reputation points
    2022-07-15T11:25:17.583+00:00

    Thanks for reaching here! If I understood right you have deployed you app successfully but you are seeing default app.

    The default app appears because you either haven't deployed your app code to App Service, or App Service failed to find your app code and ran the default app instead.

    Could you please try below steps:

    1. Restart the App Service, wait 15-20 seconds, and check the app again.
    2. Be sure you're using App Service for Linux rather than a Windows-based instance.
    3. Use SSH to connect directly to the App Service container and verify that your files exist under site/wwwroot. If your files don't exist, use the following steps:
      -Create an app setting named SCM_DO_BUILD_DURING_DEPLOYMENT with the value of 1, redeploy your code, wait a few minutes, then try to access the app
      again. -Review your deployment process, check the deployment logs, correct any errors, and redeploy the app.
    4. If your files exist, then App Service wasn't able to identify your specific startup file. Check that your app is structured as App Service expects for Django or Flask, or use a custom startup command.

    Suggest you to refer this detailed document on how to configure app service app and troubleshooting guide : https://learn.microsoft.com/en-us/azure/app-service/configure-language-python#troubleshooting

    Let us know if further query or issue remains.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.