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: articles/app-service/tutorial-java-tomcat-mysql-app.md
+10-14Lines changed: 10 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,14 +46,14 @@ azd up
46
46
47
47
## 1. Run the sample
48
48
49
-
For your convenience, the [sample repository](https://github.com/Azure-Samples/msdocs-tomcat-mysql-sample-app), includes a [dev container](https://docs.github.com/codespaces/setting-up-your-project-for-codespaces/adding-a-dev-container-configuration/introduction-to-dev-containers) configuration. The dev container has everything you need to develop an application, including the database, cache, and all environment variables needed by the sample application. The dev container can run in a [GitHub codespace](https://docs.github.com/en/codespaces/overview), which means you can run the sample on any computer with a web browser.
49
+
First, you set up a sample data-driven app as a starting point. For your convenience, the [sample repository](https://github.com/Azure-Samples/msdocs-tomcat-mysql-sample-app), includes a [dev container](https://docs.github.com/codespaces/setting-up-your-project-for-codespaces/adding-a-dev-container-configuration/introduction-to-dev-containers) configuration. The dev container has everything you need to develop an application, including the database, cache, and all environment variables needed by the sample application. The dev container can run in a [GitHub codespace](https://docs.github.com/en/codespaces/overview), which means you can run the sample on any computer with a web browser.
50
50
51
51
:::row:::
52
52
:::column span="2":::
53
53
**Step 1:** In a new browser window:
54
54
1. Sign in to your GitHub account.
55
-
1. Navigate to [https://github.com/Azure-Samples/msdocs-tomcat-mysql-sample-app](https://github.com/Azure-Samples/msdocs-tomcat-mysql-sample-app).
56
-
1. Select**Fork**.
55
+
1. Navigate to [https://github.com/Azure-Samples/msdocs-tomcat-mysql-sample-app/fork](https://github.com/Azure-Samples/msdocs-tomcat-mysql-sample-app/fork).
56
+
1. Unselect**Copy the main branch only**. You want all the branches.
57
57
1. Select **Create fork**.
58
58
:::column-end:::
59
59
:::column:::
@@ -62,7 +62,9 @@ For your convenience, the [sample repository](https://github.com/Azure-Samples/m
62
62
:::row-end:::
63
63
:::row:::
64
64
:::column span="2":::
65
-
**Step 2:** In the GitHub fork, select **Code** > **Create codespace on main**.
65
+
**Step 2:** In the GitHub fork:
66
+
1. Select **main** > **starter-no-infra** for the starter branch. This branch contains just the sample project and no Azure-related files or configuration.
67
+
1. Select **Code** > **Create codespace on main**.
66
68
The codespace takes a few minutes to set up.
67
69
:::column-end:::
68
70
:::column:::
@@ -219,7 +221,8 @@ Like the Tomcat convention, if you want to deploy to the root context of Tomcat,
219
221
1. Sign in to your GitHub account and follow the prompt to authorize Azure.
220
222
1. In **Organization**, select your account.
221
223
1. In **Repository**, select **msdocs-tomcat-mysql-sample-app**.
222
-
1. In **Branch**, select **main**.
224
+
1. In **Branch**, select **starter-no-infra**. This is the same branch that you worked in with your sample app, without any Azure-related files or configuration.
225
+
1. For **Authentication type**, select **User-assigned identity**.
223
226
1. In the top menu, select **Save**. App Service commits a workflow file into the chosen GitHub repository, in the `.github/workflows` directory.
224
227
By default, the deployment center [creates a user-assigned identity](#i-dont-have-permissions-to-create-a-user-assigned-identity) for the workflow to authenticate using Microsoft Entra (OIDC authentication). For alternative authentication options, see [Deploy to App Service using GitHub Actions](deploy-github-actions.md).
225
228
:::column-end:::
@@ -229,7 +232,7 @@ Like the Tomcat convention, if you want to deploy to the root context of Tomcat,
229
232
:::row-end:::
230
233
:::row:::
231
234
:::column span="2":::
232
-
**Step 3:** Back in the GitHub codespace of your sample fork, run `git pull origin main`.
235
+
**Step 3:** Back in the GitHub codespace of your sample fork, run `git pull origin starter-no-infra`.
233
236
This pulls the newly committed workflow file into your codespace.
234
237
:::column-end:::
235
238
:::column:::
@@ -372,14 +375,7 @@ When you're finished, you can delete all of the resources from your Azure subscr
372
375
373
376
In this step, you create the Azure resources and deploy a sample app to App Service on Linux. The steps used in this tutorial create a set of secure-by-default resources that include App Service and Azure Database for MySQL.
374
377
375
-
1. In the GitHub codspace of your sample fork, get the remote `starter-no-infra` branch by running the following code in the terminal.
0 commit comments