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

fix: volver a fallar si al hacer deploy todavia estan caidos los servicios

This commit is contained in:
f 2023-03-17 17:44:13 -03:00
parent 29e1d09986
commit f0eab9a7b3

View file

@ -31,6 +31,10 @@ class DeployDistributedPress < Deploy
create_njalla_records! if remote_info['njalla'].blank?
save
if remote_site_id.blank? || remote_info['njalla'].blank?
raise DeployJob::DeployException, ''
end
site_client.tap do |c|
stdout = Thread.new(publisher.logger_out) do |io|
until io.eof?
@ -133,6 +137,7 @@ class DeployDistributedPress < Deploy
end
rescue HTTParty::Error => e
ExceptionNotifier.notify_exception(e, data: { site: site.name })
self.remote_info['njalla'] = nil
ensure
nil
end