5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 14:36:21 +00:00

Merge branch 'informative-deploys' into panel.sutty.nl

This commit is contained in:
f 2022-04-06 20:49:56 -03:00
commit 8c34008f35

View file

@ -69,10 +69,13 @@ class DeployJob < ApplicationJob
def deploy_others def deploy_others
@site.deploys.where.not(type: 'DeployLocal').find_each do |d| @site.deploys.where.not(type: 'DeployLocal').find_each do |d|
status = d.deploy(output: @output)
build_stat = d.build_stats.last
@deployed[d.type.underscore.to_sym] = { @deployed[d.type.underscore.to_sym] = {
status: d.deploy(output: @output), status: status,
seconds: d.build_stats.last.seconds, seconds: build_stat.try(:seconds) || 0,
size: d.build_stats.last.size, size: build_stat.try(:size) || 0,
url: d.url url: d.url
} }
end end