Jump to content

[SOLVED] Trigger modules refresh in deployment hook


gebeer
 Share

Recommended Posts

The problem with wire()->modules->refresh() is that it might trigger another migration which could cause an endless loop. That's why there is rockmigrations()->refresh() which sets the "noMigrate" flag before doing the modules::refresh and then resets the flag after it is done.

  • Like 1
Link to comment
Share on other sites

57 minutes ago, bernhard said:

The problem with wire()->modules->refresh() is that it might trigger another migration which could cause an endless loop. That's why there is rockmigrations()->refresh() which sets the "noMigrate" flag before doing the modules::refresh and then resets the flag after it is done.

Good to know. Thanks for the heads up.

Link to comment
Share on other sites

  • gebeer changed the title to [SOLVED] Trigger modules refresh in deployment hook

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...