Automatically run DUSs in development (#15489)
robots doing things >>>>>>>>>>> robots telling humans to do things
This commit is contained in:
parent
6e275a12fc
commit
34ad76ab1c
1 changed files with 3 additions and 3 deletions
|
|
@ -135,9 +135,9 @@ Rails.application.configure do
|
|||
|
||||
# Check if there are any data update scripts to run during startup
|
||||
if %w[Console Server DBConsole].any? { |const| Rails.const_defined?(const) } && DataUpdateScript.scripts_to_run?
|
||||
message = "Data update scripts need to be run before you can start the application. " \
|
||||
"Please run 'rails data_updates:run'"
|
||||
raise message
|
||||
Rails.application.load_tasks
|
||||
puts "Running data updates..." # rubocop:disable Rails/Output
|
||||
Rake::Task["data_updates:run"].invoke
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue