During deploying a new fresh release, I want my application to run some custom database content tasks, similar to seeds, upon starting up. It’ll run them via
Code.eval_file(file_name), that is, there may be many
exs file to run, in a given release, or none.
Application should I run them?
They may take, say, a minute or a few ones to finish, which is a long time for them to execute them in
start, right? Or should I create a new process via
Task.async / Task.start / spawn in
start() instead? Or should I use
start_phase(), and if so, how will it improve the process?