Skip to content

Commit d831de2

Browse files
authored
Merge pull request #938 from ExpressionEngine/7.dev
Pushing env file updates live
2 parents e3adc0f + d4bd820 commit d831de2

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

docs/advanced-usage/env-support.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,12 @@ 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
34+
// .env.php
3535
36-
#URLs
36+
// URLs
3737
BASE_URL=http://mysite.test/
3838
39-
# DATABASE SETTINGS
40-
# # # # # # # # # # # #
39+
// DATABASE SETTINGS
4140
DB_HOSTNAME=db
4241
DB_DATABASE=db
4342
DB_USERNAME=db
@@ -84,18 +83,15 @@ The site short name can be accessed in the code using `$GLOBALS['assign_to_confi
8483
The below example demonstrates this approach, assuming you have 2 MSM sites with short names of `default_site` and `second_site`
8584

8685
```
87-
# .env.php
88-
89-
# SITE-SPECIFIC SETTINGS
90-
86+
// .env.php
87+
// SITE-SPECIFIC SETTINGS
9188
default_site.BASE_PATH=/home/sites/mysite.test/
9289
default_site.BASE_URL=http://mysite.test/
9390
9491
second_site.BASE_PATH=/home/sites/anothersite.test/
9592
second_site.BASE_URL=http://anothersite.test/
9693
97-
# DATABASE SETTINGS
98-
# # # # # # # # # # # #
94+
// DATABASE SETTINGS
9995
DB_HOSTNAME=db
10096
DB_DATABASE=db
10197
DB_USERNAME=db

0 commit comments

Comments
 (0)