run Elasticsearch update before update scripts (#6504)

This commit is contained in:
Molly Struve 2020-03-06 13:27:53 -05:00 committed by GitHub
parent e19a1a43be
commit 36147cce28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'