Skip to content

Commit

Permalink
Remove the information of ftp and script to set startup script (agonc…
Browse files Browse the repository at this point in the history
  • Loading branch information
andxu authored Jun 18, 2021
1 parent 60ff841 commit 4d90f4e
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 69 deletions.
11 changes: 1 addition & 10 deletions setup-env-variables-template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,6 @@ export DATABASE_SERVER=your-database-server-name # customize this
export DATABASE_ADMIN=selvasingh # customize this
export DATABASE_ADMIN_PASSWORD=SuperS3cr3t # customize this

# ======== Manually Set as part of Step 03 ==========

# FTP Secrets
# Use Azure CLI to get them

export FTP_HOST=
export FTP_USERNAME=
export FTP_PASSWORD=

# ======== DERIVED Environment Variable Values ===========

# Composed secrets for PostgreSQL
Expand Down Expand Up @@ -62,4 +53,4 @@ export APPLICATIONINSIGHTS_CONNECTION_STRING= # will be set by script
# ======== Programmatically Set ==========

#IPCONFIG
export DEVBOX_IP_ADDRESS=$(curl ifconfig.me)
export DEVBOX_IP_ADDRESS=$(curl ifconfig.me)
29 changes: 0 additions & 29 deletions step-03-bind-java-ee-app-to-database/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,6 @@ database of your choice.

---

## Get Web application's FTP publishing coordinates and credentials

To configure datasource and bind the Java EE application running in JBoss EAP in App Service
Linux, we must get the FTP publishing coordinates and credentials.

```bash
az webapp deployment list-publishing-profiles --resource-group ${RESOURCE_GROUP} \
--name ${WEBAPP}

{
...
...
"profileName": "petstore-java-ee - FTP",
"publishMethod": "FTP",
"publishUrl": "ftp://waws-prod-bay-063.ftp.azurewebsites.windows.net/site/wwwroot",
"userName": "petstore-java-ee\\$petstore-java-ee",
"userPWD": "============MASKED===========================================",
"webSystem": "WebSites"
}
```

Store FTP host name, say `waws-prod-bay-063.ftp.azurewebsites.windows.net`,
user name and user password in `.scripts/setup-env-variables.sh` file.

>🚧 - __Preview-specific__. Using FTP file transfer to upload drivers, modules, CLI commands and
startup batch file is only necessary while JBoss EAP on App Service is in preview. Soon, the
[Maven Plugin for Azure App Service](https://github.com/Microsoft/azure-maven-plugins/blob/develop/azure-webapp-maven-plugin/README.md)
will integrate these file transfer into the popular one-step deploy, `mvn azure-webapp:deploy`.

## Bind application to database

Depending on your choice of the database that you created, you can pick one of the three paths
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,6 @@ az webapp config appsettings set \
}
]
```
```bash
az webapp config set --startup-file /home/site/scripts/startup.sh \
--resource-group ${RESOURCE_GROUP} --name ${WEBAPP}
```

>🚧 - __Preview-specific__. Using Azure CLI to set App Settings and startup batch file
is only necessary while JBoss EAP on App Service is in preview. Soon, the
[Maven Plugin for Azure App Service](https://github.com/Microsoft/azure-maven-plugins/blob/develop/azure-webapp-maven-plugin/README.md)
will integrate these operations into the popular one-step deploy, `mvn azure-webapp:deploy`.

### Step 4: Restart the remote JBoss EAP app server

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,16 +147,6 @@ az webapp config appsettings set \
]
```

```bash
az webapp config set --startup-file /home/site/scripts/startup.sh \
--resource-group ${RESOURCE_GROUP} --name ${WEBAPP}
```

>🚧 - __Preview-specific__. Using Azure CLI to set App Settings and startup batch file
is only necessary while JBoss EAP on App Service is in preview. Soon, the
[Maven Plugin for Azure App Service](https://github.com/Microsoft/azure-maven-plugins/blob/develop/azure-webapp-maven-plugin/README.md)
will integrate these operations into the popular one-step deploy, `mvn azure-webapp:deploy`.

### Step 4: Restart the remote JBoss EAP app server

Use Azure CLI to restart the remote JBoss EAP app server:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,16 +131,6 @@ az webapp config appsettings set \
]
```

```bash
az webapp config set --startup-file /home/site/scripts/startup.sh \
--resource-group ${RESOURCE_GROUP} --name ${WEBAPP}
```

>🚧 - __Preview-specific__. Using Azure CLI to set App Settings and startup batch file
is only necessary while JBoss EAP on App Service is in preview. Soon, the
[Maven Plugin for Azure App Service](https://github.com/Microsoft/azure-maven-plugins/blob/develop/azure-webapp-maven-plugin/README.md)
will integrate these operations into the popular one-step deploy, `mvn azure-webapp:deploy`.

### Step 4: Restart the remote JBoss EAP app server

Use Azure CLI to restart the remote JBoss EAP app server:
Expand Down Expand Up @@ -236,4 +226,4 @@ az webapp log tail --name ${WEBAPP} --resource-group ${RESOURCE_GROUP}

⬅️ Previous guide: [02 - Create a database](../../step-02-create-a-database/README.md)

➡️ Next guide: [04 - Monitor Java EE application](../../step-04-monitor-java-ee-app/README.md)
➡️ Next guide: [04 - Monitor Java EE application](../../step-04-monitor-java-ee-app/README.md)

0 comments on commit 4d90f4e

Please sign in to comment.