1

I am having an issue when creating a build in ADO that deploys code to an Azure Web App. I can log in to azure and see that the files were copied over to the /site/wwwroot/ folder but I'm still seeing the default "Hey, Node developers!" page.

For what its worth the app that is being built and deployed is an angular 8 application. The files that were copied to the wwwroot folder are as follow

enter image description here

publish step

enter image description here

I'm not sure exactly what is wrong here. I've tried to deploy from VS Code as well but with the same results.

Matthew The Terrible
  • 1,502
  • 4
  • 28
  • 50
  • 1
    Can you show your settings of your publish step? – Krzysztof Madej May 25 '20 at 16:54
  • yes added the publish step from ADO above. – Matthew The Terrible May 25 '20 at 17:00
  • 1
    Updated my answer now as this seems to be a linux app. – ffffff01 May 26 '20 at 06:15
  • Default documents tab is not available in Linux Web Apps. You can try to use ffffff01's editing method to configure `index.html` file as the default document. Here is [a ticket](https://stackoverflow.com/a/54248175/13464420), you could refer to it. Check [this rule](https://stackoverflow.com/help/someone-answers), if ffffff01's answer could solve your issues. you can consider accepting it as answer . It just a reminder :) – – Kevin Lu-MSFT May 26 '20 at 08:11

1 Answers1

1

This can happen if hostingstart is above your own welcome page in the default documents section, looks like yours is index.html, so that should be abobe hostingstart.html. See attached image.

enter image description here

EDIT: Seems like this is a Linux app service since its missing the default documents. To solve this on Linux you should upload a index.js as described on https://docs.microsoft.com/nb-no/archive/blogs/waws/things-you-should-know-web-apps-and-linux#set-your-default-document-in-a-nodejs-app-using-javascriptapplies-to-azure-app-service-on-linuxapplies-to-web-app-for-containers

var express = require('express'); var server = express(); var options = { index: 'index.html' }; server.use('/', express.static('/home/site/wwwroot', options)); server.listen(process.env.PORT);

ffffff01
  • 4,658
  • 11
  • 50
  • 61