Skip to content

Commit

Permalink
Merge pull request #937 from ExpressionEngine/fix-env-example
Browse files Browse the repository at this point in the history
few more fixes
  • Loading branch information
TomJaeger authored Jan 29, 2025
2 parents 1ba22a7 + 89d440f commit d4bd820
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions docs/advanced-usage/env-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,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
Expand Down

0 comments on commit d4bd820

Please sign in to comment.