Node Red 不自动加载流 [英] Node Red not automatically loading flows
问题描述
我已经成功地在我的 raspberry-pi 上安装了 nodered.但问题是每次我写一个流时,我必须将流保存到 flow_raspberrypi.json 并重新启动 nodered 服务器.如何让它自动保存节点.
I have succesfully installed nodered on my raspberry-pi.But the problem is each time i write a flow,i have to save the flow into flows_raspberrypi.json and restart nodered server. How to make it automatically save the nodes.
推荐答案
2 个可能的事情.
1) 如果您手动创建了流文件,那么您可能需要创建一个名为 flow_raspberrypi_creds.json 的文件,其中包含:
1) If you created there flow file by hand then you probably need to create a file called flows_raspberrypi_creds.json containing:
{}
2) 假设流文件或 creds 文件中都没有错误,那么 node-red 将根据机器主机名加载一个文件,您可以通过在命令行上传递一个名称来覆盖它:
2) assuming no errors in either the flow file or the creds file then node-red will load a file based on the machines hostname to start with, you can override this by passing a name on the command line:
$node red bob
将加载 bob.json &bob_creds.json
will load bob.json & bob_creds.json
如果这些工作都没有运行 node red -v
以显示更详细的错误消息.
If neither of those work run node red -v
to show more detailed error messages.
这篇关于Node Red 不自动加载流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!