مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2026-01-17 05:33:35 +00:00
get the source configuration from the app rather than the config root
هذا الالتزام موجود في:
@@ -4,7 +4,7 @@ require 'openssl'
|
|||||||
require 'securerandom'
|
require 'securerandom'
|
||||||
|
|
||||||
unless File.exist?(Postal.config_file_path)
|
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))
|
content.gsub!('{{secretkey}}', SecureRandom.hex(128))
|
||||||
File.open(Postal.config_file_path, 'w') { |f| f.write(content) }
|
File.open(Postal.config_file_path, 'w') { |f| f.write(content) }
|
||||||
puts "Created example config file at #{Postal.config_file_path}"
|
puts "Created example config file at #{Postal.config_file_path}"
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم