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-php-mysql-app.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,11 +63,11 @@ First, you set up a sample data-driven app as a starting point. For your conveni
63
63
:::column-end:::
64
64
:::row-end:::
65
65
66
-
> [!TIP]
66
+
<!--> [!TIP]
67
67
> 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:
68
68
>
69
69
> * *@workspace What does this project do?*
70
-
> **@workspace What does the .devcontainer folder do?*
70
+
> * *@workspace What does the .devcontainer folder do?*-->
71
71
72
72
Having issues? Check the [Troubleshooting section](#troubleshooting).
73
73
@@ -608,7 +608,7 @@ The AZD template you use generated the connectivity variables for you already as
608
608
- AZURE_REDIS_SSL
609
609
</pre>
610
610
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.
612
612
613
613
1. From the explorer, open *config/database.php*. This is the configuration file for database and Redis cache connections.
614
614
@@ -661,7 +661,7 @@ The AZD template you use generated the connectivity variables for you already as
661
661
662
662
1. From the explorer, open *infra/resources.bicep*. This is the Bicp template file that defines the created Azure resources.
663
663
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:
665
665
666
666
|Setting |Description |
667
667
|---------|---------|
@@ -671,22 +671,22 @@ The AZD template you use generated the connectivity variables for you already as
671
671
|`APP_DEBUG` | Enable debug mode pages in Laravel (see [Laravel documentation](https://laravel.com/docs/10.x/configuration#debug-mode)). |
672
672
|`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). |
673
673
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:
675
675
676
676
```bicep
677
677
appCommandLine: 'cp /home/site/wwwroot/default /etc/nginx/sites-available/default && service nginx reload'
678
678
```
679
679
680
680
[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.
681
681
682
-
1. Back in the codespace terminal, run `azd deploy`.
682
+
1. Back in the codespace terminal, run `azd up` again.
683
683
684
684
```bash
685
-
azd deploy
685
+
azd up
686
686
```
687
687
688
688
> [!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`.
690
690
691
691
Having issues? Check the [Troubleshooting section](#troubleshooting).
0 commit comments