5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-09-29 03:36:57 +00:00

fix: no sincronizar los sitios de testeo

This commit is contained in:
f 2023-04-24 14:46:56 -03:00
parent 5514915404
commit 07145aad79

View file

@ -15,7 +15,8 @@ SiteService = Struct.new(:site, :usuarie, :params, keyword_init: true) do
add_role temporal: false, rol: 'usuarie'
site.deploys.build type: 'DeployLocal'
sync_nodes
# Los sitios de testing no se sincronizan
sync_nodes unless site.name.end_with? '.testing'
I18n.with_locale(usuarie.lang.to_sym || I18n.default_locale) do
# No se puede llamar a site.config antes de save porque el sitio