silverstripe-framework/docs/en/02_Developer_Guides/04_Configuration/03_Environment_Variables.md
Aaron Carlino 6888901468
NEW: Update docs to be compliant with Gatsby site (#9314)
* First cut

* Temporarily disable composer.json for netlify build

* POC

* New recursive directory query, various refinements

* Fix flexbox

* new styled components plugin

* Apply frontmatter delimiters

* Mobile styles, animation

* Search

* Redesign, clean up

* Nuke the cache, try again

* fix file casing

* Remove production env file

* ID headers

* Move app to new repo

* Add frontmatter universally

* Hide children changelogs

* Add how to title

* New callout tags

* Revert inline code block change

* Replace note callouts

* Fix icons

* Repalce images

* Fix icon

* Fix image links

* Use proper SQL icon
2019-11-18 17:58:33 +13:00

1.1 KiB

title summary icon
Environment Variables Site configuration variables such as database connection details, environment type and remote login information. dollar-sign

Environment Variables

Environment specific variables like database connection details, API keys and other server configuration should be kept outside the application code in a separate .env file. This file is stored in the web root and kept out of version control for security reasons.

For more information see our docs on Environment Management.

Data which isn't sensitive that can be in version control but is mostly static such as constants is best suited to be included through the Configuration API based on the standard environment types (dev / test / live).