kamal icon indicating copy to clipboard operation
kamal copied to clipboard

Set KAMAL_DESTINATION when loading config

Open nickhammond opened this issue 1 year ago • 1 comments

nickhammond avatar Oct 01 '24 15:10 nickhammond

I'm glad to see that this issue is being tackled. I have needed ENV['KAMAL_DESTINATION'] in my config/deploy.yml so I can do Dotenv.load(".kamal/secrets.#{ENV['KAMAL_DESTINATION']}") or something similar with Dotenv.parse.

This PR would remove my hacky workaround of pre-parsing the destination from ARGV in my bin/kamal binstub and setting the environment variable then.

jeromedalbert avatar Oct 01 '24 20:10 jeromedalbert