# Deploy button Click validation event

**URL:** https://discourse.nodered.org/t/deploy-button-click-validation-event/30259
**Category:** Core Development
**Created:** [17 July 2020 12:03 UTC](https://discourse.nodered.org/t/deploy-button-click-validation-event/30259 "2020-07-17T12:03:17Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![dhpatel177](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dhpatel177/32/39248_2.png) [@dhpatel177](https://discourse.nodered.org/u/dhpatel177)
#### Post date: [17 July 2020 12:03 UTC](https://discourse.nodered.org/t/deploy-button-click-validation-event/30259/1 "2020-07-17T12:03:17Z")

</div>

Hello,

I am doing some research on node red and i am new to node red. Can anyone please guide me which event first fire for validation and where on click of deploy button. I am getting error attached to screen shot. Can you please guide me where the following validations are checked?

Thanks

 ![Capture](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/5/95a51e53d6d5705d6b178f132f642346981afb94.png)

---

<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: [17 July 2020 12:29 UTC](https://discourse.nodered.org/t/deploy-button-click-validation-event/30259/2 "2020-07-17T12:29:50Z")

</div>

The function that gets called when you click the Deploy button is here: [https://github.com/node-red/node-red/blob/82677c304e7640a5ea640bac407eb7ac719d6c78/packages/node\_modules/%40node-red/editor-client/src/js/ui/deploy.js#L322](https://github.com/node-red/node-red/blob/82677c304e7640a5ea640bac407eb7ac719d6c78/packages/node_modules/%40node-red/editor-client/src/js/ui/deploy.js#L322)

You can step through that function to see how it checks what it is about to deploy.

---

<div class="post-metadata">

### Author: ![dhpatel177](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dhpatel177/32/39248_2.png) [@dhpatel177](https://discourse.nodered.org/u/dhpatel177)
#### Post date: [17 July 2020 13:34 UTC](https://discourse.nodered.org/t/deploy-button-click-validation-event/30259/3 "2020-07-17T13:34:48Z")

</div>

@knolleary i have gone throught this depoly.js and the same function above but when i put debugger here it wont get hit....also for testing i have putted some dummy text in "P" tag but it wont worked..Can you please tell how can i test this....?

---

<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: [17 July 2020 13:36 UTC](https://discourse.nodered.org/t/deploy-button-click-validation-event/30259/4 "2020-07-17T13:36:42Z")

</div>

What steps exactly have you done?

Are you rebuilding the editor code when you change it?

---

<div class="post-metadata">

### Author: ![dhpatel177](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dhpatel177/32/39248_2.png) [@dhpatel177](https://discourse.nodered.org/u/dhpatel177)
#### Post date: [17 July 2020 13:40 UTC](https://discourse.nodered.org/t/deploy-button-click-validation-event/30259/5 "2020-07-17T13:40:58Z")

</div>

I have simply putted debugger and console.log("1")....but couldnt see any effect...please see the screen shot.

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

---

<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: [17 July 2020 13:44 UTC](https://discourse.nodered.org/t/deploy-button-click-validation-event/30259/6 "2020-07-17T13:44:15Z")

</div>

How are you running Node-RED?

I assume because you didn't say so that you are _not_ running a proper build after modifying the code?

You need to run `grunt build` after modifying the source code so it can be built into the `red.js` file the editor loads.

Another option is to use the `grunt dev` task - this runs node-red itself and watches for any changes to the source code, automatically restarting Node-RED or rebuilding the editor code as needed.

---

<div class="post-metadata">

### Author: ![dhpatel177](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dhpatel177/32/39248_2.png) [@dhpatel177](https://discourse.nodered.org/u/dhpatel177)
#### Post date: [17 July 2020 13:47 UTC](https://discourse.nodered.org/t/deploy-button-click-validation-event/30259/7 "2020-07-17T13:47:06Z")

</div>

I am running it by command : npm run start

---

<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: [15 September 2020 13:47 UTC](https://discourse.nodered.org/t/deploy-button-click-validation-event/30259/8 "2020-09-15T13:47:10Z")

</div>

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