Closed mohsenari closed 4 days ago
Do .env
files (and our parser) also support the following format:
export S3_BUCKET=YOURS3BUCKET
export SECRET_KEY=YOURSECRETKEYGOESHERE
Do
.env
files (and our parser) also support the following format:export S3_BUCKET=YOURS3BUCKET export SECRET_KEY=YOURSECRETKEYGOESHERE
@Lagoja not common but .env
file format seems to have export in front of each line in some cases .
But because .env
doesn't have an official standard (although dotenv.org claims to be the creator of dotenv), some others specifications don't support the export.
So ultimately, it's up to us if we want to add it in our parser. Currently, the parser doesn't support it.
I think I'm ok to add it later, current functionality is probably good for now
Summary
NOTE: Docs update PR will follow. As per request from users, I added support for
env_from
field being able to take a path to*.env
file and have those env variables available in devbox shell and run.If a duplicate env variable is specified in both
.env
and in the"env"
section of devbox.json, the env section from devbox.json takes priority and overwrites. This I believe is the correct behavior but I'm open to discussion.How was it tested?
see test file at
testscripts/run/envfrom.test.txt