Set KAMAL_DESTINATION when loading config

This commit is contained in:
Nick Hammond
2024-10-01 08:16:52 -07:00
parent e71bfcbadd
commit 73c78079bc
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