Permanent running Node-Red Methods?

Hey which Methods do I have to run my Node-Red automatically and permanent.
I made it locally on my Laptop.
Now I am thinking about a VM or something like that.

  • Which ways do I have?
  • Pro's & Con's?

What OS are you running? If you are using a Debian based system (such as Raspbian or Ubuntu) and have used the recommended install script in the node red docs then all you have is
sudo systemctl enable nodered

I believe there are suggestions for how to do it on Windows in the docs for installing on Windows so have a look there.

NOTE: Assuming windows...

  • NSSM
  • PM2
  • Scheduled Task
  • shortcut to node-red in start up folder
  • many many "tray-it" type apps (search internet for tray-it alternatives)
  • NSSM
    Runs as a service (runs even when you log off)
  • PM2
    Can run as as a service (bit more fiddly to setup)
  • Scheduled Task
  • shortcut to node-red in start up folder
  • many many "tray-it" type apps (search internet for tray-it alternatives)
    Can set it to run when you log on
    CON: Will be visible in taskbar (easy to close accidentally)
    CON: Stops if you log-off

All have their merits - I prefer NSSM

Here is a pointer to one of the many posts about NSSM on this forum

1 Like

I think that the real question is not the OS (choose any convenient one) but where you want to run it?

On a local network, somewhere "in the cloud"?

As a follow-up Q, who needs access and where are they? Lots of people? Just a few? Over the Internet? Or just a private network?

There is also with docker that you can run your container with --restart unless-stopped that will let docker monitor that the container running Node-RED is restarted if it crashes

what is NSSM

@Eintracht00

what is NSSM

Let me google that for you :slight_smile:

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.