5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 18:46:22 +00:00

fix: no fallar si hay errores remotos

closes #10467

closes #10506

closes #10509
This commit is contained in:
f 2023-03-17 17:33:52 -03:00
parent 812fc0315c
commit debf45b726

View file

@ -118,7 +118,9 @@ class DeployDistributedPress < Deploy
self.remote_info['njalla']['a'] = njalla.add_record(name: site.name, type: 'CNAME', content: "#{Site.domain}.").to_h self.remote_info['njalla']['a'] = njalla.add_record(name: site.name, type: 'CNAME', content: "#{Site.domain}.").to_h
self.remote_info['njalla']['ns'] = njalla.add_record(name: "_dnslink.#{site.name}", type: 'NS', content: "#{publisher.hostname}.").to_h self.remote_info['njalla']['ns'] = njalla.add_record(name: "_dnslink.#{site.name}", type: 'NS', content: "#{publisher.hostname}.").to_h
end end
rescue DistributedPress::V1::Error, HTTParty::Error => e
ExceptionNotifier.notify_exception(e, data: { site: site.name })
ensure
nil nil
end end