mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-18 23:46:21 +02:00
17 lines
1.0 KiB
Markdown
17 lines
1.0 KiB
Markdown
title: Environment Variables
|
|
summary: Site configuration variables such as database connection details, environment type and remote login information.
|
|
|
|
# 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](../../getting_started/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](configuration) based on the standard environment types (dev / test / live).
|
|
|
|
## Related Lessons
|
|
* [Up and running](https://www.silverstripe.org/learn/lessons/v4/up-and-running-setting-up-a-local-silverstripe-dev-environment-1)
|
|
* [Advanced environment configuration](https://www.silverstripe.org/learn/lessons/v4/advanced-environment-configuration-1) |