# Auto import and deploy flow

**URL:** <https://discourse.nodered.org/t/auto-import-and-deploy-flow/36300>\
**Category:** General\
**Created:** [21 November 2020 20:07 UTC](https://discourse.nodered.org/t/auto-import-and-deploy-flow/36300 "2020-11-21T20:07:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jotarod](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@Jotarod](https://discourse.nodered.org/u/Jotarod)\
**Post date:** [21 November 2020 20:07 UTC](https://discourse.nodered.org/t/auto-import-and-deploy-flow/36300/1 "2020-11-21T20:07:26Z")

</div>

Dear all,

I have being reading some other post but I cant find something helpfull for me.

I have a PC with ubuntu and node red working on a company and I cant have access by VPN or similar cause they have lot of restrictions on the net.

I would like to send flows updates from my home and that the system be able of import and deploy automaticaly the flow.

I have being thinking in something like send the flow by email, node red donwload that flow and auto import it.

I dont know how can I do this..... ☹

Any idea?

Many thanks by advance!

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [22 November 2020 09:30 UTC](https://discourse.nodered.org/t/auto-import-and-deploy-flow/36300/2 "2020-11-22T09:30:11Z")

</div>

Does it have to be fully automatic at the remote end? If so are you able to pick up emails in node-red?  
You could send an email with the complete flow file attached and in node-red save that to the `.node-red` folder and then make it self-restart to pick up the new flow file.

However there are security implications of this that you need to consider. How do you prevent a malicious person sending an email with a malicious flow attached?

If some manual intervention can be required at the remote end then email the flow to the operator there and tell him to save the file to a pre-defined location, then in node-red watch that folder and when a new file appears automatically copy it to `.node-red` and self-restart.

---

<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:** [22 November 2020 13:53 UTC](https://discourse.nodered.org/t/auto-import-and-deploy-flow/36300/3 "2020-11-22T13:53:55Z")

</div>

I agree. While I can think of several potential ways to do it I would not want to do anything without full (written) permission of your client. Breaking their security has to be a no.

---

<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:** [21 January 2021 13:53 UTC](https://discourse.nodered.org/t/auto-import-and-deploy-flow/36300/4 "2021-01-21T13:53:56Z")

</div>

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