Error in Deploying Node.js app on Web app

Violet Zeng 30 Reputation points
2023-06-21T21:22:18.2066667+00:00

I want to deploy my Node.js web app through github repo.
I already created a Azure Web App and linked to my github repo with runtime stack NODE ~18. My app includes an app.js file and a public folder with related .html and .js files. I also add these necessary file names into 'Default Documents'.
I also set up the github workflow and environment following this instruction. My Web App was able to deploy succesfully, but the [projectname].azurewebsites.net is only printing my app.js code, instead of the actual web content.
My app.js was able to run successfully on local server using Node.js with version 18.16.0.
Is there any other steps I need to do to successfully deploy my app?

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

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.