1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-30 19:52:20 +01:00

(quality) check statistics_module is active? before run build_stats task

This commit is contained in:
Du Peng 2023-02-02 12:52:56 +01:00
parent 874a527f6f
commit ce23597657

View File

@ -5,6 +5,8 @@ namespace :fablab do
namespace :es do
desc '(re)Build ElasticSearch fablab base for stats'
task build_stats: :environment do
exit unless Setting.get('statistics_module')
delete_stats_index
create_stats_index
create_stats_mappings