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
If you're prompted for a password, enter the password for the `root` account. If you don't remember your root account password, see [MySQL: How to Reset the Root Password](https://dev.mysql.com/doc/refman/5.7/en/resetting-permissions.html).
65
65
66
-
If your command runs successfully, then your MySQL server is running. If not, make sure that your local MySQL server is started by following the [MySQL post-installation steps](https://dev.mysql.com/doc/refman/5.7/en/postinstallation.html).
66
+
If your command runs successfully, then your MySQL server is running. If not, ensure that your local MySQL server is started by following the [MySQL post-installation steps](https://dev.mysql.com/doc/refman/5.7/en/postinstallation.html).
67
67
68
68
### Create a database locally
69
69
@@ -95,14 +95,14 @@ In the terminal window, `cd` to a working directory.
95
95
cd laravel-tasks
96
96
```
97
97
98
-
1. Make sure the default branch is `main`.
98
+
1. Ensure the default branch is `main`.
99
99
100
100
```bash
101
101
git branch -m main
102
102
```
103
103
104
104
> [!TIP]
105
-
> The branch name change isn't required by App Service. However, since many repositories are changing their default branch to `main`, this tutorial also shows you how to deploy a repository from `main`. For more information, see [Change deployment branch](deploy-local-git.md#change-deployment-branch).
105
+
> The branch name change isn't required by App Service. But, since many repositories are changing their default branch to `main`, this tutorial also shows you how to deploy a repository from `main`. For more information, see [Change deployment branch](deploy-local-git.md#change-deployment-branch).
106
106
107
107
1. Install the required packages.
108
108
@@ -148,15 +148,15 @@ For information on how Laravel uses the _.env_ file, see [Laravel Environment Co
148
148
php artisan serve
149
149
```
150
150
151
-
1. Navigate to `http://localhost:8000`in a browser. Add a few tasks in the page.
151
+
1. Go to `http://localhost:8000`in a browser. Add a few tasks in the page.
152
152
153
153

154
154
155
-
1. To stop PHP, type`Ctrl + C`in the terminal.
155
+
1. To stop PHP, enter`Ctrl + C`in the terminal.
156
156
157
157
## Create MySQL in Azure
158
158
159
-
In this step, you create a MySQL database in [Azure Database for MySQL](../mysql/index.yml). Later, you configure the PHP application to connect to this database.
159
+
In this step, you create a MySQL database in [Azure Database for MySQL](../mysql/index.yml). Later, you set up the PHP application to connect to this database.
160
160
161
161
### Create a resource group
162
162
@@ -227,7 +227,7 @@ When the MySQL server is created, the Azure CLI shows information similar to the
227
227
GRANT ALL PRIVILEGES ON sampledb.* TO 'phpappuser';
228
228
```
229
229
230
-
1. Exit the server connection by typing`quit`.
230
+
1. Exit the server connection by entering`quit`.
231
231
232
232
```sql
233
233
quit
@@ -259,7 +259,7 @@ MYSQL_SSL=true
259
259
Save the changes.
260
260
261
261
> [!TIP]
262
-
> To secure your MySQL connection information, this file is already excluded from the Git repository (See _.gitignore_ in the repository root). Later, you learn how to configure environment variables in App Service to connect to your database in Azure Database for MySQL. With environment variables, you don't need the *.env* file in App Service.
262
+
> To secure your MySQL connection information, this file is already excluded from the Git repository (See _.gitignore_ in the repository root). Later, you learn how to set up the environment variables in App Service to connect to your database in Azure Database for MySQL. With environment variables, you don't need the *.env* file in App Service.
263
263
>
264
264
265
265
### Configure TLS/SSL certificate
@@ -318,13 +318,13 @@ The certificate `BaltimoreCyberTrustRoot.crt.pem` is provided in the repository
318
318
php artisan serve --env=production
319
319
```
320
320
321
-
1. Navigate to `http://localhost:8000`. If the page loads without errors, the PHP application is connecting to the MySQL database in Azure.
321
+
1. Go to `http://localhost:8000`. If the page loads without errors, the PHP application is connecting to the MySQL database in Azure.
322
322
323
323
1. Add a few tasks in the page.
324
324
325
325

326
326
327
-
1. To stop PHP, type `Ctrl + C` in the terminal.
327
+
1. To stop PHP, enter `Ctrl + C` in the terminal.
328
328
329
329
### Commit your changes
330
330
@@ -433,7 +433,7 @@ By default, Azure App Service points the root virtual application path (_/_) to
433
433
434
434
::: zone pivot="platform-linux"
435
435
436
-
[Laravel application lifecycle](https://laravel.com/docs/5.4/lifecycle) begins in the _public_ directory instead of the application's root directory. The default PHP Docker image for App Service uses Apache, and it doesn't let you customize the `DocumentRoot`for Laravel. However, you can use `.htaccess` to rewrite all requests to point to _/public_ instead of the root directory. In the repository root, an `.htaccess` is added already for this purpose. With it, your Laravel application is ready to be deployed.
436
+
[Laravel application lifecycle](https://laravel.com/docs/5.4/lifecycle) begins in the _public_ directory instead of the application's root directory. The default PHP Docker image for App Service uses Apache, and it doesn't let you customize the `DocumentRoot`for Laravel. But you can use `.htaccess` to rewrite all requests to point to _/public_ instead of the root directory. In the repository root, an `.htaccess` is added already for this purpose. With it, your Laravel application is ready to be deployed.
437
437
438
438
For more information, see [Change site root](configure-language-php.md#change-site-root).
439
439
@@ -505,11 +505,11 @@ Congratulations, you're running a data-driven PHP app in Azure App Service.
505
505
506
506
In this step, you make a simple change to the `task` data model and the webapp, and then publish the update to Azure.
507
507
508
-
For the tasks scenario, you modify the application so that you can mark a task as complete.
508
+
For the tasks scenario, you change the application so that you can mark a task as complete.
509
509
510
510
### Add a column
511
511
512
-
1. In the local terminal window, navigate to the root of the Git repository.
512
+
1. In the local terminal window, go to the root of the Git repository.
513
513
514
514
1. Generate a new database migration for the `tasks` table:
515
515
@@ -615,11 +615,11 @@ For the tasks scenario, you modify the application so that you can mark a task a
615
615
php artisan serve
616
616
```
617
617
618
-
1. To see the task status change, navigate to `http://localhost:8000` and selectthe checkbox.
618
+
1. To see the task status change, go to `http://localhost:8000` and selectthe checkbox.
619
619
620
620

621
621
622
-
1. To stop PHP, type`Ctrl + C`in the terminal.
622
+
1. To stop PHP, enter`Ctrl + C`in the terminal.
623
623
624
624
### Publish changes to Azure
625
625
@@ -637,11 +637,11 @@ For the tasks scenario, you modify the application so that you can mark a task a
637
637
git push azure main
638
638
```
639
639
640
-
1. Once the `git push` is complete, navigate to the Azure app and test the new functionality.
640
+
1. Once the `git push` is complete, go to the Azure app and test the new functionality.
641
641
642
642

643
643
644
-
If you added any tasks, they are retained in the database. Updates to the data schema leave existing data intact.
644
+
If you add any task, they're retained in the database. Updates to the data schema leave existing data intact.
Once log streaming has started, refresh the Azure app in the browser to get some web traffic. You can now see console logs piped to the terminal. If you don't see console logs immediately, check again in 30 seconds.
659
659
660
-
To stop log streaming at any time, type `Ctrl`+`C`.
660
+
To stop log streaming at any time, enter`Ctrl`+`C`.
661
661
662
662
::: zone-end
663
663
@@ -678,11 +678,11 @@ To stop log streaming at any time, type `Ctrl`+`C`.
678
678
679
679
1. Go to the [Azure portal](https://portal.azure.com) to manage the app you created.
680
680
681
-
1. From the left menu, click **App Services**, and then click the name of your Azure app.
681
+
1. From the left menu, select**App Services**, and thenselectthe name of your Azure app.
682
682
683
683

684
684
685
-
You see your app's Overview page. Here, you can perform basic management tasks like stop, start, restart, browse, and delete.
685
+
You see your app's Overview page. In this page, you can do basic management tasks like stop, start, restart, browse, and delete.
686
686
687
687
The left menu provides pages for configuring your app.
0 commit comments