diff --git a/docs/advanced-usage/env-support.md b/docs/advanced-usage/env-support.md index 2a578030..7caba389 100644 --- a/docs/advanced-usage/env-support.md +++ b/docs/advanced-usage/env-support.md @@ -31,13 +31,12 @@ This variable can now be used in your `/system/user/config.php` as illustrated b Here is an example of what it might look like to manage all your database connection settings, and Base URL in `.env.php` ``` -# .env.php +// .env.php -#URLs +// URLs BASE_URL=http://mysite.test/ -# DATABASE SETTINGS -# # # # # # # # # # # # +// DATABASE SETTINGS DB_HOSTNAME=db DB_DATABASE=db DB_USERNAME=db @@ -84,18 +83,15 @@ The site short name can be accessed in the code using `$GLOBALS['assign_to_confi The below example demonstrates this approach, assuming you have 2 MSM sites with short names of `default_site` and `second_site` ``` -# .env.php - -# SITE-SPECIFIC SETTINGS - +// .env.php +// SITE-SPECIFIC SETTINGS default_site.BASE_PATH=/home/sites/mysite.test/ default_site.BASE_URL=http://mysite.test/ second_site.BASE_PATH=/home/sites/anothersite.test/ second_site.BASE_URL=http://anothersite.test/ -# DATABASE SETTINGS -# # # # # # # # # # # # +// DATABASE SETTINGS DB_HOSTNAME=db DB_DATABASE=db DB_USERNAME=db