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:
parent
874a527f6f
commit
ce23597657
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user