Skip to content

Commit 8b57b8b

Browse files
Merge pull request #261783 from cephalin/distros
replace tomcat jar deploy step
2 parents 04edc78 + fd0f174 commit 8b57b8b

File tree

2 files changed

+11
-35
lines changed

2 files changed

+11
-35
lines changed

articles/app-service/configure-language-java.md

Lines changed: 9 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -845,23 +845,11 @@ The following example script copies a custom Tomcat to a local folder, performs
845845
846846
#### Finalize configuration
847847
848-
Finally, you'll place the driver JARs in the Tomcat classpath and restart your App Service. Ensure that the JDBC driver files are available to the Tomcat classloader by placing them in the */home/tomcat/lib* directory. (Create this directory if it doesn't already exist.) To upload these files to your App Service instance, perform the following steps:
848+
Finally, you'll place the driver JARs in the Tomcat classpath and restart your App Service. Ensure that the JDBC driver files are available to the Tomcat classloader by placing them in the */home/site/lib* directory. In the [Cloud Shell](https://shell.azure.com), run `az webapp deploy --type=lib` for each driver JAR:
849849
850-
1. In the [Cloud Shell](https://shell.azure.com), install the webapp extension:
851-
852-
```azurecli-interactive
853-
az extension add -–name webapp
854-
```
855-
856-
2. Run the following CLI command to create an SSH tunnel from your local system to App Service:
857-
858-
```azurecli-interactive
859-
az webapp remote-connection create --resource-group <resource-group-name> --name <app-name> --port <port-on-local-machine>
860-
```
861-
862-
3. Connect to the local tunneling port with your SFTP client and upload the files to the */home/tomcat/lib* folder.
863-
864-
Alternatively, you can use an FTP client to upload the JDBC driver. Follow these [instructions for getting your FTP credentials](deploy-configure-credentials.md).
850+
```azurecli-interactive
851+
az webapp deploy --resource-group <group-name> --name <app-name> --src-path <jar-name>.jar --type=lib --target-path <jar-name>.jar
852+
```
865853
866854
---
867855
@@ -1001,25 +989,13 @@ An example xsl file is provided below. The example xsl file adds a new connector
1001989
1002990
Finally, place the driver JARs in the Tomcat classpath and restart your App Service.
1003991
1004-
1. Ensure that the JDBC driver files are available to the Tomcat classloader by placing them in the */home/tomcat/lib* directory. (Create this directory if it doesn't already exist.) To upload these files to your App Service instance, perform the following steps:
1005-
1006-
1. In the [Cloud Shell](https://shell.azure.com), install the webapp extension:
1007-
1008-
```azurecli-interactive
1009-
az extension add -–name webapp
1010-
```
1011-
1012-
2. Run the following CLI command to create an SSH tunnel from your local system to App Service:
992+
1. Ensure that the JDBC driver files are available to the Tomcat classloader by placing them in the */home/site/lib* directory. In the [Cloud Shell](https://shell.azure.com), run `az webapp deploy --type=lib` for each driver JAR:
1013993
1014-
```azurecli-interactive
1015-
az webapp remote-connection create --resource-group <resource-group-name> --name <app-name> --port <port-on-local-machine>
1016-
```
1017-
1018-
3. Connect to the local tunneling port with your SFTP client and upload the files to the */home/tomcat/lib* folder.
1019-
1020-
Alternatively, you can use an FTP client to upload the JDBC driver. Follow these [instructions for getting your FTP credentials](deploy-configure-credentials.md).
994+
```azurecli-interactive
995+
az webapp deploy --resource-group <group-name> --name <app-name> --src-path <jar-name>.jar --type=lib --path <jar-name>.jar
996+
```
1021997
1022-
2. If you created a server-level data source, restart the App Service Linux application. Tomcat will reset `CATALINA_BASE` to `/home/tomcat` and use the updated configuration.
998+
If you created a server-level data source, restart the App Service Linux application. Tomcat will reset `CATALINA_BASE` to `/home/tomcat` and use the updated configuration.
1023999
10241000
### JBoss EAP Data Sources
10251001

articles/app-service/deploy-zip.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,11 +263,11 @@ The table below shows the available query parameters, their allowed values, and
263263

264264
| Key | Allowed values | Description | Required | Type |
265265
|-|-|-|-|-|
266-
| `type` | `war`\|`jar`\|`ear`\|`lib`\|`startup`\|`static`\|`zip` | The type of the artifact being deployed, this sets the default target path and informs the web app how the deployment should be handled. <br/> - `type=zip`: Deploy a ZIP package by unzipping the content to `/home/site/wwwroot`. `path` parameter is optional. <br/> - `type=war`: Deploy a WAR package. By default, the WAR package is deployed to `/home/site/wwwroot/app.war`. The target path can be specified with `path`. <br/> - `type=jar`: Deploy a JAR package to `/home/site/wwwroot/app.jar`. The `path` parameter is ignored <br/> - `type=ear`: Deploy an EAR package to `/home/site/wwwroot/app.ear`. The `path` parameter is ignored <br/> - `type=lib`: Deploy a JAR library file. By default, the file is deployed to `/home/site/libs`. The target path can be specified with `path`. <br/> - `type=static`: Deploy a static file (e.g. a script). By default, the file is deployed to `/home/site/wwwroot`. <br/> - `type=startup`: Deploy a script that App Service automatically uses as the startup script for your app. By default, the script is deployed to `D:\home\site\scripts\<name-of-source>` for Windows and `home/site/wwwroot/startup.sh` for Linux. The target path can be specified with `path`. | Yes | String |
266+
| `type` | `war`\|`jar`\|`ear`\|`lib`\|`startup`\|`static`\|`zip` | The type of the artifact being deployed, this sets the default target path and informs the web app how the deployment should be handled. <br/> - `type=zip`: Deploy a ZIP package by unzipping the content to `/home/site/wwwroot`. `target-path` parameter is optional. <br/> - `type=war`: Deploy a WAR package. By default, the WAR package is deployed to `/home/site/wwwroot/app.war`. The target path can be specified with `target-path`. <br/> - `type=jar`: Deploy a JAR package to `/home/site/wwwroot/app.jar`. The `target-path` parameter is ignored <br/> - `type=ear`: Deploy an EAR package to `/home/site/wwwroot/app.ear`. The `target-path` parameter is ignored <br/> - `type=lib`: Deploy a JAR library file. By default, the file is deployed to `/home/site/libs`. The target path can be specified with `target-path`. <br/> - `type=static`: Deploy a static file (e.g. a script). By default, the file is deployed to `/home/site/wwwroot`. <br/> - `type=startup`: Deploy a script that App Service automatically uses as the startup script for your app. By default, the script is deployed to `D:\home\site\scripts\<name-of-source>` for Windows and `home/site/wwwroot/startup.sh` for Linux. The target path can be specified with `target-path`. | Yes | String |
267267
| `restart` | `true`\|`false` | By default, the API restarts the app following the deployment operation (`restart=true`). To deploy multiple artifacts, prevent restarts on the all but the final deployment by setting `restart=false`. | No | Boolean |
268268
| `clean` | `true`\|`false` | Specifies whether to clean (delete) the target deployment before deploying the artifact there. | No | Boolean |
269269
| `ignorestack` | `true`\|`false` | The publish API uses the `WEBSITE_STACK` environment variable to choose safe defaults depending on your site's language stack. Setting this parameter to `false` disables any language-specific defaults. | No | Boolean |
270-
| `path` | `"<absolute-path>"` | The absolute path to deploy the artifact to. For example, `"/home/site/deployments/tools/driver.jar"`, `"/home/site/scripts/helper.sh"`. | No | String |
270+
| `target-path` | `"<absolute-path>"` | The absolute path to deploy the artifact to. For example, `"/home/site/deployments/tools/driver.jar"`, `"/home/site/scripts/helper.sh"`. | No | String |
271271

272272
## Next steps
273273

0 commit comments

Comments
 (0)