You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: onboarding-enabler-nodejs/README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,18 @@ This is the onboarding Node.js enabler for [Zowe API Mediation Layer](https://gi
18
18
apiLayerService.connectToEureka();
19
19
});
20
20
21
+
```
22
+
To make sure that your application will automatically unregister from Eureka once shut down, you can use the `unregisterFromEureka()`function, like shown in the example below.
23
+
**Example:**
24
+
25
+
```js
26
+
process.on('SIGINT', signal=> {
27
+
apiLayerService.unregisterFromEureka();
28
+
httpsServer.close(() => {
29
+
process.exit(0);
30
+
});
31
+
});
32
+
21
33
```
22
34
23
35
3. Create a yaml file named `service-configuration.yml`, add the configuration properties and place the yaml file inside a `/config` directory at the same level of your `index.js`.
0 commit comments