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-using-individual-actions.md
+26-10Lines changed: 26 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,13 +9,18 @@ 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. The actions include undeploying the old version of the CICS bundle, uploading the new version of the CICS bundle to z/OS, running `npm install` on z/OS to resolve dependencies, and finally deploying the new version of the CICS bundle.
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:
13
+
14
+
* undeploying the old version of the CICS bundle
15
+
* uploading the new version of the CICS bundle to z/OS
16
+
* running `npm install` on z/OS to resolve dependencies
17
+
* deploying the new version of the CICS bundle.
13
18
14
19
However, there may be situations where you need more control or perform alternate actions. The following sections describe how each of these actions could be performed independently, enabling you to form a sequence of commands to achieve your needs.
15
20
16
21
### Undeploy a CICS bundle
17
22
18
-
Undeploying a CICS bundle will first disable the BUNDLE resource in CICS. This will result in all CICS resources defined in the BUNDLE being disabled. To disable Node.js applications, CICS will send a SIGTERM signal to the application. The CICS bundle will then be discarded from CICS. This command will not remove the CICS bundle from the z/OS directory.
23
+
Undeploying a CICS bundle will first disable the CICS bundle resource (BUNDLE) in CICS. This will result in all CICS resources defined in the BUNDLE being disabled. To disable Node.js applications, CICS will send a SIGTERM signal to the application. The CICS bundle will then be discarded from CICS. This command will not remove the CICS bundle from the z/OS directory.
There are several ways to upload a CICS bundle to z/OS, such as FTP, Git, and Zowe. Typically you will need to upload some files as binary, some as text, and exclude others that are not required to run the application. It is best practice to tag files on z/OS as binary or with their text codepage to allow for correct viewing and loading by environments such as Node.js. You can specify these requirements in a .zosattributes file and use the Zowe CLI to upload and tag files in a single command.
37
+
Before uploading the CICS bundle to z/OS, you will need to ensure the target directory is empty in order to prevent merging with a previously deployed version of the CICS bundle.
33
38
34
-
For example, create file **~/myExpressApp/.zosattributes** in the CICS bundle:
39
+
There are several ways to run shell commands and scripts on z/OS, such as SSH, batch jobs, and Zowe. When using Zowe, an SSH connection will be established, the user will be logged in, the shell .profile will be run to setup the environment. Zowe will then run the specified command in the directory specified by the `--cwd` option.
Typically you will need to upload some files as binary, some as text, and exclude others that are not required to run the application. In addition it is best practice to tag files on z/OS as binary or with their text codepage to allow for correct viewing and loading by environments such as Node.js. You can specify these requirements in a .zosattributes file and use the Zowe CLI to upload and tag files in a single command.
49
+
50
+
For example, create file **~/myExpressApp/.zosattributes** in the CICS bundle:
There are several ways to run shell commands and scripts on z/OS, such as SSH, batch jobs, and Zowe. When using Zowe, an SSH connection will be established, the user will be logged in, the shell .profile will be run to setup the environment. Zowe will then run the specified command in the directory specified by the `--cdw` option.
81
+
A Node.js application will typically depend on packages that are described in`package.json`. The dependencies can be installed by running `npm install`. For example:
Deploying a CICS bundle will define the BUNDLE resource in CICS, then install, then enable the BUNDLE.
89
+
Deploying a CICS bundle will define a CICS bundle resource (BUNDLE), then install it, and finally enable it. When the CICS bundle is enabled, the Node.js application is started. For example:
74
90
75
91
```console
76
-
zowe cics-deploy deploy bundle --name EXAMPLE --bundledir /var/cicsts/bundles/myExpressApp_1.0.0
0 commit comments