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
4. Deploy your Node.js application to the CICS region using the steps in [Deploying your first app](cdp-Deploying-your-first-app). For example:
87
+
4. Deploy your Node.js application to the CICS region using the steps in [Deploying your first Node.js app](cdp-Deploying-your-first-nodejs-app). For example:
Copy file name to clipboardExpand all lines: docs/pages/cdp/cdp-Deploying-using-individual-actions.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ folder: cdp
9
9
toc: false
10
10
---
11
11
12
-
The `zowe cics-deploy push bundle` command performs a set of actions to deploy applications to CICS, as can be seen in [Deploying your first app](cdp-cdp-Deploying-your-first-app). The main actions include:
12
+
The `zowe cics-deploy push bundle` command performs a set of actions to deploy applications to CICS, as can be seen in [Deploying your first Node.js app](cdp-Deploying-your-first-nodejs-app). The main actions include:
13
13
14
14
* undeploy the old version of the CICS bundle in CICS
15
15
* upload the new version of the CICS bundle to z/OS
2. Create Zowe CLI profiles for z/OSMF, SSH, and cics-deploy by following the steps in [Create Zowe CLI profiles](cdp-Create-Zowe-CLI-profiles).
15
15
16
-
3. Create a Node.js application.
17
-
18
-
For example, to create a Node.js application using the [Express Application Generator](https://expressjs.com/en/starter/generator.html):
16
+
3. Create a Node.js application using the [Express Application Generator](https://expressjs.com/en/starter/generator.html):
19
17
20
18
```console
21
19
npm install -g express-generator
@@ -29,15 +27,15 @@ toc: false
29
27
30
28
4. Package the Node.js application into a [CICS bundle](cdp-cics-bundles).
31
29
32
-
Make sure you are in the root directory of the application. Replace the value for `--port` with one that is available for use by the CICS region on z/OS.
30
+
Make sure you are in the root directory of the application. Replace the value for the `--port` option with one that is available for use by the CICS region on z/OS.
The output will show the directories and files created to form a CICS bundle. For example:
39
37
40
-
```console
38
+
<preclass="messageText">
41
39
define : NODEJSAPP "myexpressapp" with startscript "./bin/www"
42
40
create : nodejsapps
43
41
create : nodejsapps/myexpressapp.nodejsapp
@@ -46,11 +44,11 @@ toc: false
46
44
create : META-INF
47
45
create : META-INF/cics.xml
48
46
CICS Bundle generated with bundleid "myexpressapp"
49
-
```
47
+
</pre>
50
48
51
49
5. Update the CICS Node.js application profile if your application requires environment variables to be set.
52
50
53
-
Edit the `.profile` file created in step 4, for example `nodejsapps/myexpressapp.profile`.
51
+
Edit the `.profile` file created in step 4, for example `nodejsapps/myexpressapp.profile` to add the environment varaiables.
54
52
55
53
6. Deploy the CICS bundle into CICS.
56
54
@@ -70,4 +68,6 @@ toc: false
70
68
71
69
### Results
72
70
73
-
The Node.js application is packaged into a CICS bundle on the workstation, uploaded to a directory on z/OS, and is running in CICS.
71
+
The Node.js application is packaged into a CICS bundle on the workstation, uploaded to a directory on z/OS, and is running in CICS.
72
+
73
+
{% include tip.html content="[Best practice for developing Node.js applications](https://www.ibm.com/support/knowledgecenter/SSGMCP_5.5.0/applications/developing/node/best-practice.html) provides guidance on using environment variables and graceful application termination." %}
Copy file name to clipboardExpand all lines: docs/pages/cdp/cdp-Home.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ folder: cdp
10
10
11
11
It provides a Node.js CICS deployment workflow for developers and CI/CD automation pipelines similar to that experienced when deploying Node.js applications to the cloud.
12
12
13
-
Before you start, and especially if you are not familiar with the world of z/OS, Zowe and CICS, it's a good idea to read about some of the key concepts, which include [Zowe](cdp-zowe-and-cli), [Zowe CLI profiles](cdp-zowe-profiles) and [CICS bundles](cdp-cics-bundles). If you're keen to get going quickly, you can jump right in and follow along with our tutorial on [Deploying your first app](cdp-Deploying-your-first-app).
13
+
Before you start, and especially if you are not familiar with the world of z/OS, Zowe and CICS, it's a good idea to read about some of the key concepts, which include [Zowe](cdp-zowe-and-cli), [Zowe CLI profiles](cdp-zowe-profiles) and [CICS bundles](cdp-cics-bundles). If you're keen to get going quickly, you can jump right in and follow along with our tutorial on [Deploying your first Node.js app](cdp-Deploying-your-first-nodejs-app).
14
14
15
15
When everything has been [installed](cdp-Installation) and [you've created the Zowe CLI profiles](cdp-Create-Zowe-CLI-profiles), you can deploy a Node.js application from your workstation to CICS in two steps:
0 commit comments