mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #1147 from dhensby/patch-1
Change to how environment file is found
This commit is contained in:
commit
f633a72921
@ -56,10 +56,8 @@ of `$databaseConfig` and `Director::set_dev_servers`, and instead make sure that
|
||||
The mechanism by which the `_ss_environment.php` files work is quite simple. Here's how it works:
|
||||
|
||||
* At the beginning of SilverStripe's execution, the `_ss_environment.php` file is searched for, and if it is found, it's
|
||||
included. SilverStripe looks in 3 places for the file:
|
||||
* The site's base folder (ie, a sibling of framework, jsparty, and cms)
|
||||
* The parent of the base folder
|
||||
* The grandparent of the base folder
|
||||
included. SilverStripe looks in all the parent folders of framework up to the server root (using the REAL location of
|
||||
the dir - see PHP realpath()):
|
||||
* The `_ss_environment.php` file sets a number of "define()".
|
||||
* "conf/ConfigureFromEnv.php" is included from within your `mysite/_config.php`. This file has a number of regular
|
||||
configuration commands that use those defines as their arguments. If you are curious, open up
|
||||
|
Loading…
Reference in New Issue
Block a user