Deploying Node.js Web App

Richard Hsnson-Graville 1 Reputation point
2020-05-02T17:54:24.893+00:00

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.
https://heatwebn.azurewebsites.net/
"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.
http://13.90.131.156:1880/ui

Its to replicate the current attempt using PHP to act as the gateway to Node-RED...
http://hw1.heatweb.com/index.php?client=thermal&Page=Home&test=fdgdfdfdg

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.
6,849 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 25,486 Reputation points Microsoft Employee
    2020-05-04T05:25:17.637+00:00

    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.

    7850-2019-09-26-12-57-57-ryhillnodexpress-configuration.png

    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