# Is it possible to use NR-Editor and NR-Runtime in different servers?

**URL:** https://discourse.nodered.org/t/is-it-possible-to-use-nr-editor-and-nr-runtime-in-different-servers/22718
**Category:** General
**Created:** [6 March 2020 13:34 UTC](https://discourse.nodered.org/t/is-it-possible-to-use-nr-editor-and-nr-runtime-in-different-servers/22718 "2020-03-06T13:34:56Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![SunnyLeo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sunnyleo/32/17529_2.png) [@SunnyLeo](https://discourse.nodered.org/u/SunnyLeo)
#### Post date: [6 March 2020 13:34 UTC](https://discourse.nodered.org/t/is-it-possible-to-use-nr-editor-and-nr-runtime-in-different-servers/22718/1 "2020-03-06T13:34:56Z")

</div>

sorry,a newbie here with a newbie question  
i noticed the latest version NR has split editor and runtime,that's awsone!

Could I only deploy NR-Runtime on a device such like Raspberry Pi and deploy NR-Editor on my local computer or a web server ?

If it is possible,How do I pass the file of flows.json to the NR-Runtime?

Could I edit simple flows or flows.json without NR-Editor ? Where could I get all rules of editing flows?

Thanks

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [6 March 2020 13:41 UTC](https://discourse.nodered.org/t/is-it-possible-to-use-nr-editor-and-nr-runtime-in-different-servers/22718/2 "2020-03-06T13:41:41Z")

</div>

The work to split the editor and runtime has, so far, been focussed on the internal packaging of Node-RED. It has not produced a separately installable Node-RED Editor application.

You can already configure Node-RED to disable the editor via the settings file. That gives you a headless runtime that you can use the admin api to send an HTTP request to deploy a new flow configuration - [https://nodered.org/docs/api/admin/](https://nodered.org/docs/api/admin/)

---

<div class="post-metadata">

### Author: ![Chris](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chris/32/1328_2.png) [@Chris](https://discourse.nodered.org/u/Chris)
#### Post date: [8 March 2020 06:41 UTC](https://discourse.nodered.org/t/is-it-possible-to-use-nr-editor-and-nr-runtime-in-different-servers/22718/3 "2020-03-08T06:41:45Z")

</div>

I also meet this question on more and more IoT projects. How to solve the the x/y co-ordinates of the node when the flow is drawn with NR HTTP API without NR-editor, and deploy the new flow is locked.

@knolleary do you have any suggestion.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/5/d51ba4c4de42d44fd6f5e347cc2a7a132e8507b8.png)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/5/45fc72bb000703306d7d56ca07e5115c19a6b36a.png)

Many thanks!

---

<div class="post-metadata">

### Author: ![SunnyLeo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sunnyleo/32/17529_2.png) [@SunnyLeo](https://discourse.nodered.org/u/SunnyLeo)
#### Post date: [8 March 2020 11:51 UTC](https://discourse.nodered.org/t/is-it-possible-to-use-nr-editor-and-nr-runtime-in-different-servers/22718/4 "2020-03-08T11:51:40Z")

</div>

Thanks for your guidance.

I have deployed a Node-RED which been disabled the editor on the Raspberry Pi and a full-featured one on my local computer.

We could copy or download all flows from the menu with export nodes options.  
I plan to use the full-featured one to send an HTTP request with http node, The input of this http node is a custom function node there could get formatted json of all flows.How to code in function node to achieve that? Is there any ready-made nodes for that?

We noticed I and my partner visit the same NR-Editor without authentication at the same time,if i do some change and deploy it ,my partner will see the change too. Is there any way to edit without interference at the same time?Is it possible to edit each other at the same time as long as different users are set up to different authentication?

Thank you very much.

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [8 March 2020 11:59 UTC](https://discourse.nodered.org/t/is-it-possible-to-use-nr-editor-and-nr-runtime-in-different-servers/22718/5 "2020-03-08T11:59:37Z")

</div>

@chris Which version of Node-RED are you using ? Where did that lock capability come from ?

---

<div class="post-metadata">

### Author: ![Chris](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chris/32/1328_2.png) [@Chris](https://discourse.nodered.org/u/Chris)
#### Post date: [9 March 2020 03:18 UTC](https://discourse.nodered.org/t/is-it-possible-to-use-nr-editor-and-nr-runtime-in-different-servers/22718/6 "2020-03-09T03:18:37Z")

</div>

Hi dceejay,

Maybe there is a misunderstanding. I use NR 1.0.3 version. The lock which from [Flow Security, If, then How can it be done?](https://discourse.nodered.org/t/flow-security-if-then-how-can-it-be-done/16507/6). I deep hope NR team could implement this feature meet more and more IoT projects requirements.

---

<div class="post-metadata">

### Author: ![kuema](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kuema/32/6542_2.png) [@kuema](https://discourse.nodered.org/u/kuema)
#### Post date: [9 March 2020 06:09 UTC](https://discourse.nodered.org/t/is-it-possible-to-use-nr-editor-and-nr-runtime-in-different-servers/22718/7 "2020-03-09T06:09:14Z")

</div>

@dceejay: I think this thread is derailing into two different topics. Should we move Chris' topic into a new one?

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [9 March 2020 08:24 UTC](https://discourse.nodered.org/t/is-it-possible-to-use-nr-editor-and-nr-runtime-in-different-servers/22718/8 "2020-03-09T08:24:31Z")

</div>

> [@SunnyLeo](#):
>
> How to code in function node to achieve that? Is there any ready-made nodes for that?

There are no ready made functions for that. One approach would be to use the File node to read your flows file to get the data.

One issue you'll hit is that your flows file doesn't include the flow credentials. They are stored separately in a file alongside your flow file (same filename, but with `_creds` added) and you'd have to include both in the request. The ability to do this was only just added in 1.0.4 and the api docs haven't been updated to reflect it yet. If that is something you want to pursue, then I'll try to get the docs updated this week.

> [@SunnyLeo](#):
>
> We noticed I and my partner visit the same NR-Editor without authentication at the same time,if i do some change and deploy it ,my partner will see the change too. Is there any way to edit without interference at the same time?Is it possible to edit each other at the same time as long as different users are set up to different authentication?

No - there is no way for different users to have different views. If one user deploys changes, the other user needs to merge them into their workspace before they can deploy anything. This prevents one user from overwriting another user's work. It isn't the nicest workflow and an area I want to improve.

> [@Chris](#):
>
> I also meet this question on more and more IoT projects. How to solve the the x/y co-ordinates of the node when the flow is drawn with NR HTTP API without NR-editor, and deploy the new flow is locked.

@Chris this is off topic, so if you want to continue your part of the discussion, please do start a new topic. I will say the concept of locking flows is still just that - a concept. As for the x/y co-ordinates - if you are generating a flow without using the editor then its up to you to give your nodes suitable x/y co-ordinates.

---

<div class="post-metadata">

### Author: ![SunnyLeo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sunnyleo/32/17529_2.png) [@SunnyLeo](https://discourse.nodered.org/u/SunnyLeo)
#### Post date: [10 March 2020 05:22 UTC](https://discourse.nodered.org/t/is-it-possible-to-use-nr-editor-and-nr-runtime-in-different-servers/22718/9 "2020-03-10T05:22:23Z")

</div>

Thanks again for your guidance.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [24 March 2020 05:22 UTC](https://discourse.nodered.org/t/is-it-possible-to-use-nr-editor-and-nr-runtime-in-different-servers/22718/10 "2020-03-24T05:22:25Z")

</div>

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