5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 01:31:41 +00:00

fix: generar un registro cuando falla distributed press #13628
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
f 2023-06-15 18:51:16 -03:00
parent 4064d41855
commit 6d64fa1443

View file

@ -52,7 +52,12 @@ class DeployDistributedPress < Deploy
end
end
begin
status = c.publish(publishing_site, deploy_local.destination)
rescue DistributedPress::V1::Error => e
ExceptionNotifier.notify_exception(e, data: { site: site.name })
status = false
end
if status
self.remote_info[:distributed_press] = c.show(publishing_site).to_h