5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-10-04 23:16:56 +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 698b3a0bf6
commit b297800933

View file

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