Is there a way to tell mix tasks to run in embedded mode?

Does anyone know if there’s a way to tell mix tasks to run in embedded mode? Alternatively, a way to reliably force the VM to load all of the app modules in non-embedded mode? I’m finding that even searching the app path doesn’t guarantee that the expected app modules will be loaded unless I do a mix clean first.

1 Like

Some tasks have a —preload-modules option.

3 Likes

Awesome, thanks for the breadcrumb. I also as a side effect learned of Application.spec :)!

1 Like