question

RichardHsnsonGraville-8060 avatar image
0 Votes"
RichardHsnsonGraville-8060 asked ·

Deploying Node.js Web App

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-webapps
10 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ryanchill avatar image
0 Votes"
ryanchill answered ·

Hi @RichardHsnsonGraville-8060,

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.



10 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.