Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
Add general environment_variables documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
tharna committed Feb 20, 2019
1 parent 34864ef commit 9e04537
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,3 +274,8 @@ When those environment variables are in place they can be used in settings.php u
```
$secret_variable = getenv("secret_key");
```

For more generic environment variables you can also define them in `environment_variables` the same way as with `php_extra_env_vars`. This is included in the base role, so it will be available even on servers not requiring php -role. This can be used for example in NodeJs applications where you can access the environment variables using `process.env`:
```
let secret_variable = process.env.secret_key
```

0 comments on commit 9e04537

Please sign in to comment.