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

get the source configuration from the app rather than the config root

هذا الالتزام موجود في:
Adam Cooke
2017-04-26 11:29:01 +01:00
الأصل 5115223728
التزام 78c9b0f4dc

عرض الملف

@@ -4,7 +4,7 @@ require 'openssl'
require 'securerandom'
unless File.exist?(Postal.config_file_path)
content = File.read(Postal.config_root.join('postal.example.yml'))
content = File.read(Postal.app_root.join('config', 'postal.example.yml'))
content.gsub!('{{secretkey}}', SecureRandom.hex(128))
File.open(Postal.config_file_path, 'w') { |f| f.write(content) }
puts "Created example config file at #{Postal.config_file_path}"