mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 12:21:43 +00:00
generar un deploy rsync para el sitio con todos los nodos
This commit is contained in:
parent
20915443d8
commit
a5e90257a3
1 changed files with 7 additions and 0 deletions
|
@ -144,4 +144,11 @@ SiteService = Struct.new(:site, :usuarie, :params, keyword_init: true) do
|
|||
PostService.new(site: site, usuarie: usuarie, post: post,
|
||||
params: params).update
|
||||
end
|
||||
|
||||
# Crea los deploys necesarios para sincronizar a otros nodos de Sutty
|
||||
def sync_nodes
|
||||
Sutty.nodes.each do |node|
|
||||
site.deploys.build(type: 'DeployRsync', destination: "sutty@#{node}:#{site.hostname}")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue