Mix release -- deployment tasks

The new recommended way you’re referring to is specifically for Ecto migrations and can be seen here

So it doesn’t really cover your use case. Application.ensure_all_started/1 is still the correct way to start an application and its dependencies.

Hard to say what’s causing your error. Are you sure you’ve started all the required processes? Are there any others in your application supervision tree that might be missing?