File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -31,13 +31,12 @@ This variable can now be used in your `/system/user/config.php` as illustrated b
3131Here 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
3737BASE_URL=http://mysite.test/
3838
39- # DATABASE SETTINGS
40- # # # # # # # # # # # #
39+ // DATABASE SETTINGS
4140DB_HOSTNAME=db
4241DB_DATABASE=db
4342DB_USERNAME=db
@@ -84,18 +83,15 @@ The site short name can be accessed in the code using `$GLOBALS['assign_to_confi
8483The 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
9188default_site.BASE_PATH=/home/sites/mysite.test/
9289default_site.BASE_URL=http://mysite.test/
9390
9491second_site.BASE_PATH=/home/sites/anothersite.test/
9592second_site.BASE_URL=http://anothersite.test/
9693
97- # DATABASE SETTINGS
98- # # # # # # # # # # # #
94+ // DATABASE SETTINGS
9995DB_HOSTNAME=db
10096DB_DATABASE=db
10197DB_USERNAME=db
You can’t perform that action at this time.
0 commit comments