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
Not sure what's going on here, seems like the local part of envify is working exactly as expected, but the transfer to the target machine seems to somehow be cached in a way I do not understand and haven't found a reference to in the docs.
Steps to replicate the issue
Add a new line to .env.erb, ASD="asd"
Run kamal envify. Now my local .env file has the line ASD="asd"
On the target machine, run cat .kamal/env/roles/myapp.env | grep ASD - nothing shows up, as its not in config yet
Add the variable as a secret to deploy.yml:
env:
secret:
- ASD
Run kamal envify
On the target machine, run cat .kamal/env/roles/myapp.env | grep ASD - now I get a value ASD=asd as expected
Change the value in .env.erb to ASD="def"
Run kamal envify. Now my local.env file has the line ASD="def" as expected
On the target machine, run cat .kamal/env/roles/myapp.env | grep ASD - this still gives ASD=asd
Other notes/info
I have tried clearing .kamal/env/ directory entirely, this does not work either. The old value for the secret is still pushed to the target machine.
My target machine is an AWS EC2 instance
The text was updated successfully, but these errors were encountered:
Calling `load_envs` again does not load updated env variables, because
Dotenv does not overwrite existing values.
To fix this we'll store the original ENV and reset to it before
reloading.
#512
Not sure what's going on here, seems like the local part of
envify
is working exactly as expected, but the transfer to the target machine seems to somehow be cached in a way I do not understand and haven't found a reference to in the docs.Steps to replicate the issue
.env.erb
,ASD="asd"
kamal envify
. Now my local.env
file has the lineASD="asd"
cat .kamal/env/roles/myapp.env | grep ASD
- nothing shows up, as its not in config yetdeploy.yml
:kamal envify
cat .kamal/env/roles/myapp.env | grep ASD
- now I get a valueASD=asd
as expected.env.erb
toASD="def"
kamal envify
. Now my local.env
file has the lineASD="def"
as expectedcat .kamal/env/roles/myapp.env | grep ASD
- this still givesASD=asd
Other notes/info
.kamal/env/
directory entirely, this does not work either. The old value for the secret is still pushed to the target machine.The text was updated successfully, but these errors were encountered: