# How to deployer app node red in local computer

**URL:** <https://discourse.nodered.org/t/how-to-deployer-app-node-red-in-local-computer/32704>\
**Category:** General\
**Created:** [10 September 2020 16:18 UTC](https://discourse.nodered.org/t/how-to-deployer-app-node-red-in-local-computer/32704 "2020-09-10T16:18:11Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![hassengh](https://avatars.discourse-cdn.com/v4/letter/h/bc8723/32.png) [@hassengh](https://discourse.nodered.org/u/hassengh)\
**Post date:** [10 September 2020 16:18 UTC](https://discourse.nodered.org/t/how-to-deployer-app-node-red-in-local-computer/32704/1 "2020-09-10T16:18:11Z")

</div>

hello ,  
I want deployer my project node red on my server (local computer )  
I need your help

---

<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:** [10 September 2020 16:33 UTC](https://discourse.nodered.org/t/how-to-deployer-app-node-red-in-local-computer/32704/2 "2020-09-10T16:33:22Z")

</div>

I think you need to be a little more clear on exactly what you mean. Do you mean you have it running in the cloud and want to run it locally instead? If so then the first thing to do is to install node-red on the computer. See the node red Getting Started guide to see how to install it on your OS.

---

<div class="post-metadata">

**Author:** ![hassengh](https://avatars.discourse-cdn.com/v4/letter/h/bc8723/32.png) [@hassengh](https://discourse.nodered.org/u/hassengh)\
**Post date:** [11 September 2020 08:02 UTC](https://discourse.nodered.org/t/how-to-deployer-app-node-red-in-local-computer/32704/3 "2020-09-11T08:02:07Z")

</div>

Thanks for your reply.  
I mean that after developing my node red project, I like to know how to deploy my project on server production (local server : windows server 2012)

---

<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:** [11 September 2020 08:33 UTC](https://discourse.nodered.org/t/how-to-deployer-app-node-red-in-local-computer/32704/4 "2020-09-11T08:33:01Z")

</div>

First Install node-red on the server and make sure it works.  
If you are using the projects feature of node-red then you can fetch the project from the appropriate repository.

Otherwise it is advisable, on the development machine, to edit your settings.js and explicitly specify the name of the flows file. Rename that file if necessary and restart node-red to make sure it works. The reason for doing this is that the default flows file name includes the host name, which will be different on the server.  
Next stop node-red on the server and copy all of your .node-red directory, except the node\_modules folder, across from your development machine to the equivalent directory on the server, then cd into that folder and run `npm install` which should install all the extra nodes. Restart node-red and with luck all will work as expected.

---

<div class="post-metadata">

**Author:** ![hassengh](https://avatars.discourse-cdn.com/v4/letter/h/bc8723/32.png) [@hassengh](https://discourse.nodered.org/u/hassengh)\
**Post date:** [11 September 2020 09:11 UTC](https://discourse.nodered.org/t/how-to-deployer-app-node-red-in-local-computer/32704/5 "2020-09-11T09:11:15Z")

</div>

thanks ,  
But I ask how configure node red start automaticly after a restart ( windows server)

---

<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:** [11 September 2020 10:01 UTC](https://discourse.nodered.org/t/how-to-deployer-app-node-red-in-local-computer/32704/6 "2020-09-11T10:01:53Z")

</div>

> [@hassengh](#):
>
> I ask how configure node red start automaticly

That is not what you asked at all. I have no idea, since I don't use Windows. You could try looking in the node red docs, I see the [relevant page](https://nodered.org/docs/faq/starting-node-red-on-boot) has a section on Windows.

I presume that you have to use windows server for some reason. I believe many would suggest that a LInux alternative such as Ubuntu Server would more appropriate for such applications. That is certainly what I do.

---

<div class="post-metadata">

**Author:** ![UnborN](https://avatars.discourse-cdn.com/v4/letter/u/4491bb/32.png) [@UnborN](https://discourse.nodered.org/u/UnborN)\
**Post date:** [11 September 2020 12:19 UTC](https://discourse.nodered.org/t/how-to-deployer-app-node-red-in-local-computer/32704/7 "2020-09-11T12:19:10Z")

</div>

> [@hassengh](#):
>
> But I ask how configure node red start automaticly after a restart

For me running Node-Red when windows starts was as simple as :

1. creating a batch file on the desktop ie. **RunNodeRed.bat**
2. adding `node-red` command in batch file.
3. In windows 'Task Scheduler' create a new Task that ' **triggers**' on System startup with ..
4. **Action** set to run the batch file

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/2/320aeb374f78d13294fcbd9aa814fd42f21d82ba.png)

ps. you may need to play around with the task configuration since im autologin in my test machine.  
but there is an option in task 'General' settings to "run whether the user is logged on or not".

[EDIT] [**Running a Batch File from Task Scheduler Without User being logged In**](https://www.youtube.com/watch?v=EInOL6D5f3Q)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [11 September 2020 23:38 UTC](https://discourse.nodered.org/t/how-to-deployer-app-node-red-in-local-computer/32704/8 "2020-09-11T23:38:53Z")

</div>

Rather than scheduled tasks or user executed scripts, you can run node-red as a proper service using something like nssm....

> [@I got problem to create a schedule task on windows 7 to run Node-Red on start](https://discourse.nodered.org/t/i-got-problem-to-create-a-schedule-task-on-windows-7-to-run-node-red-on-start/10149/5):
>
> I use [NSSM - the Non-Sucking Service Manager](https://nssm.cc/) I use it to run multiple instances on ports 1880, 1881, 1882, ... I set the following... Program - node-red Arguments -u c:\nr1881 -p 1881 User domain\user Password supersecret

---

<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:** [10 November 2020 23:39 UTC](https://discourse.nodered.org/t/how-to-deployer-app-node-red-in-local-computer/32704/9 "2020-11-10T23:39:07Z")

</div>

Closed on 10 November 2020 23:39 UTC

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