mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 19:48:28 +02:00
All required env settings are now checkeda and depricated APP_CONFIG
This commit is contained in:
parent
e238760cef
commit
54b5394196
14 changed files with 61 additions and 47 deletions
|
@ -18,7 +18,7 @@ class ZonefileSetting < ActiveRecord::Base
|
|||
"select generate_zonefile('#{origin}')"
|
||||
)[0]['generate_zonefile']
|
||||
|
||||
File.open("#{APP_CONFIG['zonefile_export_dir']}/#{filename}", 'w') { |f| f.write(zf) }
|
||||
File.open("#{ENV['zonefile_export_dir']}/#{filename}", 'w') { |f| f.write(zf) }
|
||||
|
||||
STDOUT << "#{Time.now.utc} - Successfully generated zonefile #{filename}\n"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue