You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pages/configuration/variables.mdx
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,8 +132,16 @@ vars:
132
132
</Tabs>
133
133
134
134
135
-
### From `.env` File
136
-
DevSpace also reads environment variables from the `.env` file inside your project. The syntax of the `.env` file is the [same as for docker-compose](https://docs.docker.com/compose/env-file/):
135
+
### `$DEVSPACE_ENV_FILE` for `.env` File definition
136
+
DevSpace can also read environment variables from an environment file such as `.env` inside your project. Point DevSpace to your env file via the `DEVSPACE_ENV_FILE` environment variable.
137
+
This can also be used inside a `devspace.yaml` under the vars section:
138
+
139
+
```yaml
140
+
vars:
141
+
DEVSPACE_ENV_FILE: ".env"
142
+
```
143
+
144
+
The syntax of the `.env` file is the [same as for docker-compose](https://docs.docker.com/compose/env-file/):
137
145
138
146
- Each line should have the format `VAR_NAME=VAR_VALUE`.
139
147
- **There is *no* special handling of quotation marks. This means that they are part of the `VAR_VALUE`.**
0 commit comments