From 36147cce28726b8867a51dbbdb3d3317bc0ec49e Mon Sep 17 00:00:00 2001 From: Molly Struve Date: Fri, 6 Mar 2020 13:27:53 -0500 Subject: [PATCH] run Elasticsearch update before update scripts (#6504) --- bin/update | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/update b/bin/update index 92008104e..314b371f1 100755 --- a/bin/update +++ b/bin/update @@ -23,12 +23,12 @@ chdir APP_ROOT do puts "\n== Updating database ==" system! 'bin/rails db:migrate' - puts "\n== Update Data ==" - system! 'bin/rails data_updates:run' - puts "\n== Update Elasticsearch ==" system! 'bin/rails search:setup' + puts "\n== Update Data ==" + system! 'bin/rails data_updates:run' + puts "\n== Removing old logs and tempfiles ==" system! 'bin/rails log:clear tmp:clear'