mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 16:46:22 +00:00
Merge branch 'deploy-reindex' into panel.sutty.nl
This commit is contained in:
commit
055ce6ba42
4 changed files with 28 additions and 0 deletions
19
app/models/deploy_reindex.rb
Normal file
19
app/models/deploy_reindex.rb
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
# Reindexa los artículos al terminar la compilación
|
||||||
|
class DeployReindex < Deploy
|
||||||
|
def deploy
|
||||||
|
site.reset
|
||||||
|
site.indexed_posts.destroy_all
|
||||||
|
site.index_posts!
|
||||||
|
site.touch
|
||||||
|
end
|
||||||
|
|
||||||
|
def limit
|
||||||
|
1
|
||||||
|
end
|
||||||
|
|
||||||
|
def hostname
|
||||||
|
nil
|
||||||
|
end
|
||||||
|
end
|
1
app/views/deploys/_deploy_reindex.haml
Normal file
1
app/views/deploys/_deploy_reindex.haml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
-# NADA
|
|
@ -109,6 +109,10 @@ en:
|
||||||
title: Synchronize to backup server
|
title: Synchronize to backup server
|
||||||
success: Success!
|
success: Success!
|
||||||
error: Error
|
error: Error
|
||||||
|
deploy_reindex:
|
||||||
|
title: Reindex
|
||||||
|
success: Success!
|
||||||
|
error: Error
|
||||||
help: You can contact us by replying to this e-mail
|
help: You can contact us by replying to this e-mail
|
||||||
maintenance_mailer:
|
maintenance_mailer:
|
||||||
notice:
|
notice:
|
||||||
|
|
|
@ -109,6 +109,10 @@ es:
|
||||||
title: Sincronizar al servidor alternativo
|
title: Sincronizar al servidor alternativo
|
||||||
success: ¡Éxito!
|
success: ¡Éxito!
|
||||||
error: Hubo un error
|
error: Hubo un error
|
||||||
|
deploy_reindex:
|
||||||
|
title: Reindexación
|
||||||
|
success: ¡Éxito!
|
||||||
|
error: Hubo un error
|
||||||
help: Por cualquier duda, responde este correo para contactarte con nosotres.
|
help: Por cualquier duda, responde este correo para contactarte con nosotres.
|
||||||
maintenance_mailer:
|
maintenance_mailer:
|
||||||
notice:
|
notice:
|
||||||
|
|
Loading…
Reference in a new issue