Gettingstarted.html still showing after deleting it and deploying over 12 hours ago on Linux web app

Matthew Spencer 1 Reputation point
2021-09-22T00:34:44.16+00:00

I've tried:

'WEBSITE_DYNAMIC_CACHE=0' and 'WEBSITE_LOCAL_CACHE_OPTION=Never'
Restarting the app
Shutting down the app for 15 minutes
Redeploying both manually and via github actions

I've always had this problem with linux web apps, but I keep coming back to try hoping it's fixed. What am I missing here?

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
760 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. ajkuma 22,241 Reputation points Microsoft Employee
    2021-09-22T13:03:37.03+00:00

    @Matthew Spencer , Firstly, apologies you’re facing this issue. We're here to help you.

    From the tag you have added here, I believe you’re levering Azure App Service WebApps and not Azure Static Web Apps.
    (I'll update the tag appropriately)

    If you haven’t done this already, kindly let us know if there any specific errors/runtime startup in the docker logs.
    Navigate to Kudu site: https://<yourwebpp-name>.scm.azurewebsites.net/api/logs/docker

    Based on your application stack/framework, you need to add a startup file/cmd - expected values for the Startup File section.
    Navigate to your WebApp on Azure Portal > Settings > Configuration> General settings > Startup Command":

    134227-image.png

    See this doc for more details: Azure App Service Linux FAQ

    0 comments No comments

  2. ajkuma 22,241 Reputation points Microsoft Employee
    2021-09-22T13:05:42.847+00:00

    Additionally,

    If the issue still persist, you may SSH to connect directly to the App Service container and verify that your files exist under site/wwwroot.

    The process of building a web app and deploying to Azure App Service changes depends on the language and the app is structured must be configured correctly as App Service expects.

    Deploy to App Service using GitHub Actions

    Kindly let us know how it goes, and if the issue still persists share the more details about your app/application framework. I'll follow-up with you further.


  3. Takahito Iwasa 4,841 Reputation points MVP
    2021-09-25T04:29:37.987+00:00

    Hi

    The .NET 5 runtime container for App Service on Linux runs the default web host app and probably doesn't use wwwroot, which is accessible via FTP.

    I updated the static content without deploying .NET by copying the content to another area.
    I have summarized it in the following blog, so please take a look if you like. (Sorry in Japanese)

    https://dev.classmethod.jp/articles/app-service-on-linux-net-5-static-html-deploy/

    In conclusion, if you're not deploying back-end applications, we recommend Static Web Apps.
    If you really want to use App Service Linux, try using PHP instead of the .NET runtime. I think it's more intuitive because it's hosted on Nginx or Apache.

    0 comments No comments