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

This commit is contained in:
Adam Cooke
2017-04-26 11:29:22 +01:00
parent 5115223728
commit 78c9b0f4dc
+1 -1
View File
@@ -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}"