mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
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:
committed by
GitHub
parent
4dacdd6675
commit
e076fad3a8
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user