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