mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 04:26:22 +00:00
fix: crear hooks y blocklists después de publicar
This commit is contained in:
parent
19d998086c
commit
fbd741960b
1 changed files with 4 additions and 3 deletions
|
@ -7,9 +7,6 @@ class DeploySocialDistributedPress < Deploy
|
||||||
# Solo luego de publicar remotamente
|
# Solo luego de publicar remotamente
|
||||||
DEPENDENCIES = %i[deploy_distributed_press deploy_rsync deploy_full_rsync].freeze
|
DEPENDENCIES = %i[deploy_distributed_press deploy_rsync deploy_full_rsync].freeze
|
||||||
|
|
||||||
after_save :create_hooks!
|
|
||||||
after_create :enable_fediblocks!
|
|
||||||
|
|
||||||
# Envía las notificaciones
|
# Envía las notificaciones
|
||||||
def deploy(output: false)
|
def deploy(output: false)
|
||||||
with_tempfile(site.private_key_pem) do |file|
|
with_tempfile(site.private_key_pem) do |file|
|
||||||
|
@ -18,6 +15,10 @@ class DeploySocialDistributedPress < Deploy
|
||||||
|
|
||||||
run %(bundle exec jekyll notify --trace --key #{key} --destination "#{dest}"), output: output
|
run %(bundle exec jekyll notify --trace --key #{key} --destination "#{dest}"), output: output
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
create_hooks!
|
||||||
|
enable_fediblocks!
|
||||||
end
|
end
|
||||||
|
|
||||||
# Igual que DeployLocal
|
# Igual que DeployLocal
|
||||||
|
|
Loading…
Reference in a new issue