mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 14:26:22 +00:00
Merge branch 'informative-deploys' into panel.sutty.nl
This commit is contained in:
commit
8c34008f35
1 changed files with 6 additions and 3 deletions
|
@ -69,10 +69,13 @@ class DeployJob < ApplicationJob
|
|||
|
||||
def deploy_others
|
||||
@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] = {
|
||||
status: d.deploy(output: @output),
|
||||
seconds: d.build_stats.last.seconds,
|
||||
size: d.build_stats.last.size,
|
||||
status: status,
|
||||
seconds: build_stat.try(:seconds) || 0,
|
||||
size: build_stat.try(:size) || 0,
|
||||
url: d.url
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue