Use set +a
to load env variables, drop export
#40
Labels
No Label
breaking-change
bug
CI/CD
design
documentation
duplicate
enhancement
help wanted
invalid
plugin
question
secrets
shell-completion
versioning
wontfix
No Milestone
No Assignees
2 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/abra#40
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently, our env files use dotenv / direnv format, where we
export
variables, e.g.export APP=traefik
If we switched to
.env
format (the common 12-factor app pattern, i.e. withoutexport
), we could use the same file for bothdocker-compose
, which loads.env
from the current directory automatically, andabra
, which can useset +a
to automatically export variables from a loaded file:Doing
grep -lR 'export ' | sed -i 's/export //'
across all the stacks should get us most of the way to the switch.When #55 is in some mergeable state and goes in, we'll need to update our app repos to use
.env.sample
and not.envrc.sample
as well as removing all theexport
usages 🚒Something like
adcb53b61c
and5d3fa1ad4f
does the trick with the new abra changes.Updated all our apps'n'stacks 👌