Merge pull request #1019 from nickhammond/ENV/destination

Set KAMAL_DESTINATION when loading config
This commit is contained in:
Donal McBreen
2024-10-02 09:28:01 +01:00
committed by GitHub
2 changed files with 9 additions and 0 deletions

View File

@@ -20,6 +20,8 @@ class Kamal::Configuration
class << self
def create_from(config_file:, destination: nil, version: nil)
ENV["KAMAL_DESTINATION"] = destination
raw_config = load_config_files(config_file, *destination_config_file(config_file, destination))
new raw_config, destination: destination, version: version