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

fix: no sincronizar los sitios de testeo
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
f 2023-04-24 14:46:56 -03:00
parent 3a99e1a867
commit 47969cc410

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