Skip to content

Commit 08b8a32

Browse files
committed
Update comment formatting in code block to avoid issues with markdown parser
1 parent 51131cd commit 08b8a32

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/advanced-usage/env-support.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
-->
99
# ENV File Support
1010

11-
Config files can also be configured using [PHP Environment variables ($_ENV)](https://www.php.net/manual/en/reserved.variables.environment.php). To utilize this, create a file named `.env.php` in the root of your ExpressionEngine install.
11+
Config files can also be configured using [PHP Environment variables ($_ENV)](https://www.php.net/manual/en/reserved.variables.environment.php). To utilize this, create a file named `.env.php` in the root of your ExpressionEngine install.
1212

1313
NOTE: The `.env.php` file must be placed in same directory as the `system` directory. If you move the `system` directory above the webroot you must also move `.env.php`.
1414

@@ -31,11 +31,11 @@ This variable can now be used in your `/system/user/config.php` as illustrated b
3131
Here is an example of what it might look like to manage all your database connection settings, and Base URL in `.env.php`
3232

3333
```
34-
# .env.php
35-
# URLs
34+
#.env.php
35+
#URLs
3636
BASE_URL=http://mysite.test/
3737
38-
# DATABASE SETTINGS
38+
#DATABASE SETTINGS
3939
DB_HOSTNAME=db
4040
DB_DATABASE=db
4141
DB_USERNAME=db
@@ -84,15 +84,15 @@ The site short name can be accessed in the code using `$GLOBALS['assign_to_confi
8484
The below example demonstrates this approach, assuming you have 2 MSM sites with short names of `default_site` and `second_site`
8585

8686
```
87-
# .env.php
88-
# SITE-SPECIFIC SETTINGS
87+
#.env.php
88+
#SITE-SPECIFIC SETTINGS
8989
default_site.BASE_PATH=/home/sites/mysite.test/
9090
default_site.BASE_URL=http://mysite.test/
9191
9292
second_site.BASE_PATH=/home/sites/anothersite.test/
9393
second_site.BASE_URL=http://anothersite.test/
9494
95-
# DATABASE SETTINGS
95+
#DATABASE SETTINGS
9696
DB_HOSTNAME=db
9797
DB_DATABASE=db
9898
DB_USERNAME=db

0 commit comments

Comments
 (0)