1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2025-11-30 21:32:30 +00:00

chore: support for different postal environments

هذا الالتزام موجود في:
Adam Cooke
2022-02-14 14:35:01 +00:00
الأصل 51e3a1fb5e
التزام d22237d0ec

عرض الملف

@@ -54,7 +54,17 @@ module Postal
end
def self.config_file_path
@config_file_path ||= File.join(config_root, 'postal.yml')
@config_file_path ||= begin
if env == 'default'
File.join(config_root, 'postal.yml')
else
File.join(config_root, "postal.#{env}.yml")
end
end
end
def self.env
@env ||= ENV.fetch('POSTAL_ENV', 'default')
end
def self.yaml_config