How to add a child process in my application.ex?

No. Using this iex -S mix phx.server. But the process id is different every time

Also in this case, your supervision tree is started as part of your Phoenix application, as @NobbZ said. That means that a process with that name already exists. If you need to use it, you can get its pid with Process.whereis(process_name) (where process_name is probably :redis_poolboy in this case).

1 Like

It’s the same, your application is started, so is your supervision tree.

So your supervision tree starts the first process with that name. You try to start another process with the same name. That’s not possible.

Sorry I was wrong.