Skip to content

Commit

Permalink
Invoke rake task in upgrader instead of system call (AlchemyCMS#1815)
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdeyen authored May 5, 2020
1 parent 6d9e5d8 commit c7261e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/alchemy/upgrader/five_point_zero.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ class Upgrader::FivePointZero < Upgrader
class << self
def install_gutentag_migrations
desc "Install Gutentag migrations"
`bundle exec rake gutentag:install:migrations`
Rake::Task["gutentag:install:migrations"].invoke
Alchemy::Upgrader::Tasks::HardenGutentagMigrations.new.patch_migrations
`bundle exec rake db:migrate`
Rake::Task["db:migrate"].invoke
end

def remove_layout_roots
Expand Down

0 comments on commit c7261e8

Please sign in to comment.