Sharing env vars between commands #1664
letto4135
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@casey idk if this is cool enough to add to the readme, but it works if you really need to share env vars.
Define your env variables at the beginning of the file like you normally would. Any command that needs to set one of those variables can use sed to replace the first occurrence of it, then the next
just
command will pick up the new environment variables.This allows me to run
just start dev
,just start local
, orjust start prod
without having to change any env variables.Beta Was this translation helpful? Give feedback.
All reactions