You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/advanced-usage/env-support.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
-->
9
9
# ENV File Support
10
10
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.
12
12
13
13
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`.
14
14
@@ -31,11 +31,11 @@ This variable can now be used in your `/system/user/config.php` as illustrated b
31
31
Here is an example of what it might look like to manage all your database connection settings, and Base URL in `.env.php`
32
32
33
33
```
34
-
#.env.php
35
-
#URLs
34
+
#.env.php
35
+
#URLs
36
36
BASE_URL=http://mysite.test/
37
37
38
-
#DATABASE SETTINGS
38
+
#DATABASE SETTINGS
39
39
DB_HOSTNAME=db
40
40
DB_DATABASE=db
41
41
DB_USERNAME=db
@@ -84,15 +84,15 @@ The site short name can be accessed in the code using `$GLOBALS['assign_to_confi
84
84
The below example demonstrates this approach, assuming you have 2 MSM sites with short names of `default_site` and `second_site`
0 commit comments