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: docs/pages/cdp/cdp-Deploying-your-first-nodejs-app.md
+39-21Lines changed: 39 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ CICS TS V5.5 introduced support to run Node.js applications and is required by t
21
21
22
22
3. Create a Node.js application using the [Express Application Generator](https://expressjs.com/en/starter/generator.html):
23
23
24
-
```console
24
+
```text
25
25
npm install -g express-generator
26
26
express myExpressApp
27
27
cd myExpressApp
@@ -33,41 +33,59 @@ CICS TS V5.5 introduced support to run Node.js applications and is required by t
33
33
34
34
4. Package the Node.js application into a [CICS bundle](cdp-cics-bundles).
35
35
36
-
Make sure that you are in the root directory of the application.
36
+
Make sure that you are in the root directory of the application.
37
37
38
-
Replace the value for `--port` with one that is available for use by the CICS region on z/OS. This sets the PORT environment variable in the generated `.profile` file. Additional variables can be set by editing this file.
38
+
Replace the value for `--port` with one that is available for use by the CICS region on z/OS. This sets the PORT environment variable in the generated `.profile` file. Additional variables can be set by editing this file.
A progress bar is shown with status messages as the CICS bundle is deployed and the application is started. This can take a few minutes. The command will summarize the deployment, including the Node.js runtime `.stdout` and `.stderr` file names that the application will write output to:
63
+
64
+
<preclass="messageText">
65
+
Regions in scope 'CICPY000' of CICSplex 'ZOSPTINT':
A progress bar is shown with status messages as the CICS bundle is deployed and the application is started. This can take a few minutes. If there are errors, retry with the `--verbose` option for more detailed output, or refer to [Troubleshooting](cdp-Troubleshooting-General).
68
+
NODEJSAPP resources for bundle 'Express' in scope 'CICPY000':
69
+
NODEJSAPP resource 'Express' is in 'ENABLED' state in region 'CICPY000' with process id '16844444'.
This results in a CICS BUNDLE resource named `Express` being defined, installed, and enabled in CICS. If the BUNDLE `Express` was already defined or installed in CICS, it is undeployed first. As the BUNDLE is enabled, the Node.js application is started.
74
+
This results in a CICS BUNDLE resource named `Express` being defined, installed, and enabled in CICS. If the BUNDLE `Express` was already defined or installed in CICS, it is undeployed first. As the BUNDLE is enabled, the application is started. If there are errors, retry with the `--verbose` option for more detailed output, or refer to [Troubleshooting](cdp-Troubleshooting-General).
65
75
66
-
6. Test the Node.js application.
76
+
6. Test the application.
67
77
68
-
You can call the application from a browser by using URL [http://myzos:3000/](http://myzos:3000/), replacing _myzos_ with the host name of the z/OS system, and _3000_ with the port specified in step 4.
78
+
You can call the application from a browser by using URL [http://myzos:3000/](http://myzos:3000/), replacing _myzos_ with the host name of the z/OS system, and _3000_ with the port specified in step 4.
69
79
70
-
If you make changes to the application, you can redeploy it by repeating step 5.
80
+
If you make changes to the application, you can redeploy it by repeating step 5.
81
+
82
+
7. View the application output files.
83
+
84
+
Use the [Zowe](https://marketplace.visualstudio.com/items?itemName=Zowe.vscode-extension-for-zowe) extension for Visual Studio Code or Zowe CLI commands to view the application output files. For example:
@@ -96,7 +107,7 @@ Run the following commands on your workstation.
96
107
97
108
2. Create Zowe CLI profiles for at least z/OSMF and SSH following the steps in [Creating Zowe CLI profiles](cdp-Creating-Zowe-CLI-profiles).
98
109
99
-
3. Prepare your environment and Node.js application by following steps 1 thru 4 in tutorial [Deploying your first Node.js app](cdp-Deploying-your-first-nodejs-app).
110
+
3. Prepare your environment and Node.js application by following steps 1 to 4 in tutorial [Deploying your first Node.js app](cdp-Deploying-your-first-nodejs-app).
100
111
101
112
4. Setup environment variables for the name of your image, and paths for the image source on the workstation and z/OS.
0 commit comments