# How to re-deploy a single flowchart？

**URL:** <https://discourse.nodered.org/t/how-to-re-deploy-a-single-flowchart/86900>\
**Category:** General\
**Created:** [1 April 2024 02:09 UTC](https://discourse.nodered.org/t/how-to-re-deploy-a-single-flowchart/86900 "2024-04-01T02:09:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yesung](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/yesung/32/87392_2.png) [@Yesung](https://discourse.nodered.org/u/Yesung)\
**Post date:** [1 April 2024 02:09 UTC](https://discourse.nodered.org/t/how-to-re-deploy-a-single-flowchart/86900/1 "2024-04-01T02:09:34Z")

</div>

If I have multiple flowcharts, how can I just redeploy and execute a single one?

I noticed that if you choose **Deploy All** , all flowcharts will be re-executed,

But I use one flowchart to represent one device's data collection program. If click **Deploy All** , it will cause all programs to restart.

If click **Deploy Only Modified Flowcharts** ,

Some of the content will not be executed repeatedly (such as the inject -node be set as executing only once).

**My needs are:**

(1) Redeploy a single flowchart;

(2) Clear all variables within the single flowchart ( **Variables included in the queu** e, as well as contextual variables for the flow);

(Equivalent to re running a single flowchart)

---

<div class="post-metadata">

**Author:** ![Yesung](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/yesung/32/87392_2.png) [@Yesung](https://discourse.nodered.org/u/Yesung)\
**Post date:** [1 April 2024 02:28 UTC](https://discourse.nodered.org/t/how-to-re-deploy-a-single-flowchart/86900/2 "2024-04-01T02:28:55Z")

</div>

Can I do this:

(1) First disable the flowchart that I need to redeploy;

(2) do **deploy only modified flowchart** in the disabled state (equivalent to pausing the operation of the target flowchart);

(3) Modify the target flowchart;

(4) After completing the modifications, redeploy the modified flowchart.

It seems that a single flowchart can be reinitialized and executed. But it's just that the phenomenon meets my needs, and I'm not sure if Node red's internal operation is as I thought. Could you please help me confirm the details

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [1 April 2024 06:49 UTC](https://discourse.nodered.org/t/how-to-re-deploy-a-single-flowchart/86900/3 "2024-04-01T06:49:11Z")

</div>

If you Deploy Full, then all inject nodes with "Inject once after 0.1 seconds" ticked will indeed fire.

Surprisingly though, with "Deploy Modified Flows", such an inject node will only fire if that node itself has a significant change - just moving the node or even wiring it up differently will not cause it to fire on deploy. This is what I would expect the third option "Deploy Modified Nodes" to do.

Probably a more reliable approach is to have separate production and development Node-red instances. Flows under development should be disabled or deleted from the production instance.

---

<div class="post-metadata">

**Author:** ![Yesung](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/yesung/32/87392_2.png) [@Yesung](https://discourse.nodered.org/u/Yesung)\
**Post date:** [1 April 2024 06:55 UTC](https://discourse.nodered.org/t/how-to-re-deploy-a-single-flowchart/86900/5 "2024-04-01T06:55:29Z")

</div>

> [@jbudd](#):
>
> Probably a more reliable approach is to have separate production and development Node-red instances. Flows under development should be disabled or deleted from the production instance.

Thank you for your answer.

I think NodeRed may add a feature - just redeploy the current flowchart page

---

<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:** [30 June 2024 06:56 UTC](https://discourse.nodered.org/t/how-to-re-deploy-a-single-flowchart/86900/6 "2024-06-30T06:56:21Z")

</div>

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