How to set default project on startup node-red?

hello guys.
Can I know how to set the default project on startup node-red.
when I use multiple projects on node-red.
and it is managed by pm2.

when I startup node-red from pm2, it always connected the first project.
I want each project to be mapped to each node-red process.

Can I set the configuration file for this?


I don't know of a direct way. I think that the active project is defined in the file ~/.node-red/.config.projects.json.

So each of the instances you want to start up will need a different file. Assuming you only want to ever run a single instance of node-red at a time, your PM2 startup script will need to copy the correct version of the file to the live file name.

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