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
I am preparing a PR for this but just wanted to get some input in the meantime. Environment handling is pretty inconsistent in env:encrypt and env:decrypt, right?
When I am in APP_ENV=test, env:decrypt will decrypt .env.test.encrypted to .env. If I specify --env=test, it will decrypt .env.test.encrypted to .env.test. There is no way to decrypt .env.encrypted as long as I am inside of an APP_ENV=test because --env is not checked for an empty value.
Along the same lines I can not encrypt .env as long as I am in APP_ENV=test.
Did I get this right so far?
My suggestion:
use APP_ENV consistently so don't cross-decrypt .env.${APP_ENV}.encypted to .env
allow --env= to be set empty and en-/decrypt .env to/from .env.encrypted when running in an APP_ENV=
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
I am preparing a PR for this but just wanted to get some input in the meantime. Environment handling is pretty inconsistent in
env:encrypt
andenv:decrypt
, right?When I am in
APP_ENV=test
,env:decrypt
will decrypt.env.test.encrypted
to.env
. If I specify--env=test
, it will decrypt.env.test.encrypted
to.env.test
. There is no way to decrypt.env.encrypted
as long as I am inside of anAPP_ENV=test
because--env
is not checked for an empty value.Along the same lines I can not encrypt
.env
as long as I am inAPP_ENV=test
.Did I get this right so far?
My suggestion:
APP_ENV
consistently so don't cross-decrypt.env.${APP_ENV}.encypted
to.env
--env=
to be set empty and en-/decrypt.env
to/from.env.encrypted
when running in anAPP_ENV=
Beta Was this translation helpful? Give feedback.
All reactions