Deploying Node.js Web App

Richard Hsnson-Graville 1 Reputation point

Im trying to deploy a hello world node.js web app.
Tried it using both Visual Code Editor, building express app from scratch, and also using Visual Studio, using the Node.js app template. Both run fine locally, and appear to deploy to Azure fine.
But both have errors in the actual app.
"The page cannot be displayed because an internal server error has occurred."

So... how can I get help getting a basic app going for me to start from?

The end intention is for it to sit between the browser page, and a Node-RED service, already running on an Ybuntu virtual machine, with it doing some routing based on an Active Directory sign in.

Its to replicate the current attempt using PHP to act as the gateway to Node-RED...

Ive switched to an App because I guess thats how you controll access using Active Directory.
Help much appreciated.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,362 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 27,026 Reputation points Microsoft Employee

    Hi @Richard Hsnson-Graville ,

    Follow the blog post Debugging Node.js apps on Azure App Services to enable debugging and Debug Node.js Web Apps on Azure to start analyzing. This article is another Node.JS troubleshooting guide you can review. Also make sure you have your node start command under Application Settings.


    Node-RED appears to be a Windows Service which you won't be able to install on an App Service. You'll have to consider an App Service Container app that will allow more control of OS configuraiton.

    Hope this helps.

    0 comments No comments