The website is not showing the updated code after modifying the php files

odsbyz 11 Reputation points
2021-02-16T23:07:20.303+00:00

I made changes to three PHP files and uploaded and replaced the old ones in the wwwroot directly. However, the webpages still show the old content even after the app restart.

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

1 answer

Sort by: Most helpful
  1. Ryan Hill 30,281 Reputation points Microsoft Employee Moderator
    2021-02-23T16:47:34.277+00:00

    Hi @odsbyz ,

    I couldn't reproduce your issue. Using the following PHP quick start tutorial, I deployed the sample code to a local git repo on the App Service and was successfully able to update the remote contents of the site. First, I edited the file directly in kudu (using pencil icon). I then updated my local index.php file and dragged it on the kudu drag/drop target. When I refreshed my site in both instances, the content updated as expected.

    71164-image.png

    If you performed different steps other than what I've outlined above, please comment down below so I can attempt to repro you issue. I will also add that if you setup a remote azure repo, then all you really to do is git add . \ git commit -m "commit message" \ git push azure master without need to drag and drop your files.

    Regards,
    Ryan

    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.