Attempt to improve Config Files doc (#4252)

• Adds a basic example to attempt to illustrate how to use different config file formats.
This commit is contained in:
Tyler Forest-Hauser
2021-02-23 12:40:38 -07:00
committed by GitHub
parent 4dacdd6675
commit e076fad3a8

View File

@@ -1,7 +1,9 @@
# Config Files
By default, Directus will read the `.env` file located next to your project's `package.json` for it's config. You can
change the path where this file is read from, including the filename, by setting the `CONFIG_PATH` environment variable.
change the path where this file is read from, including the filename, by setting the `CONFIG_PATH` environment variable before starting Directus.
For example: `CONFIG_PATH="/path/to/config.js" npx directus start`
The config file can be one of the following formats: