Skip to content

Commit a907eca

Browse files
committed
staged review
1 parent 257201a commit a907eca

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

articles/app-service/tutorial-php-mysql-app.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ First, you set up a sample data-driven app as a starting point. For your conveni
6363
:::column-end:::
6464
:::row-end:::
6565

66-
> [!TIP]
66+
<!-- > [!TIP]
6767
> You can ask [GitHub Copilot](https://docs.github.com/copilot/using-github-copilot/using-github-copilot-code-suggestions-in-your-editor) about this repository. For example:
6868
>
6969
> * *@workspace What does this project do?*
70-
> * *@workspace What does the .devcontainer folder do?*
70+
> * *@workspace What does the .devcontainer folder do?* -->
7171

7272
Having issues? Check the [Troubleshooting section](#troubleshooting).
7373

@@ -608,7 +608,7 @@ The AZD template you use generated the connectivity variables for you already as
608608
- AZURE_REDIS_SSL
609609
</pre>
610610
611-
Settings beginnging with `AZURE_MYSQL_` are connection variables for the MySQL database in Azure, and settings beginnging with `AZURE_REDIS_` are for the Redis cache. You need to use them in your code later. For your convenience, the AZD template shows you the direct link to the app's app settings page in the Azure portal.
611+
Settings beginnging with `AZURE_MYSQL_` are connection variables for the MySQL database, and settings beginnging with `AZURE_REDIS_` are for the Redis cache. You need to use them in your code later. For your convenience, the AZD template shows you the direct link to the app's app settings page in the Azure portal.
612612

613613
1. From the explorer, open *config/database.php*. This is the configuration file for database and Redis cache connections.
614614

@@ -661,7 +661,7 @@ The AZD template you use generated the connectivity variables for you already as
661661
662662
1. From the explorer, open *infra/resources.bicep*. This is the Bicp template file that defines the created Azure resources.
663663
664-
1. Find the part that defines the app settings (lines 515-518) and uncomment them. These app settings are:
664+
1. Find the part that defines the app settings (lines 510-514) and uncomment them. These app settings are:
665665
666666
|Setting |Description |
667667
|---------|---------|
@@ -671,22 +671,22 @@ The AZD template you use generated the connectivity variables for you already as
671671
|`APP_DEBUG` | Enable debug mode pages in Laravel (see [Laravel documentation](https://laravel.com/docs/10.x/configuration#debug-mode)). |
672672
|`APP_KEY` | [Laravel encryption variable](https://laravel.com/docs/10.x/encryption#configuration). The AZD template already created a Key Vault secret (lines 212-217), so you access it with a [Key Vault reference](app-service-key-vault-references.md). |
673673
674-
1. In *infra/resources.bicep*, find the resource definition for the App Service app and uncomment line 314:
674+
1. In *infra/resources.bicep*, find the resource definition for the App Service app and uncomment line 315:
675675
676676
```bicep
677677
appCommandLine: 'cp /home/site/wwwroot/default /etc/nginx/sites-available/default && service nginx reload'
678678
```
679679
680680
[Laravel application lifecycle](https://laravel.com/docs/10.x/lifecycle#lifecycle-overview) begins in the */public* directory instead of the application root. The default PHP container for App Service uses Nginx, which starts in the application root. To change the site root, you need to change the Nginx configuration file in the PHP container (*/etc/nginx/sites-available/default*). For your convenience, the sample repository contains a replacement configuration file called *default*, which tells Nginx to look in the */public* directory. This custom command in `appCommandLine` runs every time the app starts to apply the file replacement each time the Linux container is reloaded from a clean state.
681681
682-
1. Back in the codespace terminal, run `azd deploy`.
682+
1. Back in the codespace terminal, run `azd up` again.
683683
684684
```bash
685-
azd deploy
685+
azd up
686686
```
687687
688688
> [!TIP]
689-
> You can also just use `azd up` always, which does all of `azd package`, `azd provision`, and `azd deploy`.
689+
> `azd up` runs `azd package`, `azd provision`, and `azd deploy` together, and it makes sense because you're making both infrastructure and application changes. To make infrastructure changes only, run `azd provision`. To just deploy changes to application code, run `azd deploy`.
690690

691691
Having issues? Check the [Troubleshooting section](#troubleshooting).
692692

0 commit comments

Comments
 (0)