Matthew The Terrible
Matthew The Terrible

Reputation: 1643

Azure ADO Build + deploy to azure web app still showing "welcome node developers" page

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.

Upvotes: 1

Views: 378

Answers (1)

ffffff01
ffffff01

Reputation: 5238

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://learn.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);

Upvotes: 1

Related Questions