A webapp wrapper for running node-red in an Azure Web App
A webapp wrapper for running node-red in an Azure Web App. To use it just:
Or...
Create an Azure Web App
Open the settings and activate Web sockets
Figure 1 Activate Web sockets
Configure the deployment options as an External repository pointing to https://github.com/jmservera/node-red-azure-webapp.git
Figure 2 External Repository
This project currently uses a workaround to avoid a small problem caused with
child_process.execFile
: it uses a fake npm.cmd that points to the real one.
Wait until everything is deployed before opening the website, during the deployment a script is executed to download this repo and install all the needed modules. If you see this screen just wait about 30 seconds to let the Node-RED app start:
Figure 3 Not Started Site
You can see the live log in the Azure Portal, in the Log stream tab:
Figure 4 Application logs stream
It comes with some cool nodes preinstalled:
To secure this deployment and add an admin password edit the settings.js
file.