mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 19:56:21 +00:00
fix: volver a fallar si al hacer deploy todavia estan caidos los servicios
This commit is contained in:
parent
698b3a0bf6
commit
b297800933
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue