Process to upgrade elixir and phoenix version

I have a mid sized phoenix (v1.3) project and i am using elixir v1.9 otp22.

How would you guys upgrade a mid sized phoenix project’s elixir and phoenix version to the latest?

1 Like

Gradually. Try only upgrading Erlang to 23 and make sure all tests pass. Then upgrade Elixir to 1.10, then 1.11, then 1.12. Keep Elang at 23 for now.

Then upgrade Phoenix to 1.4, then 1.5. IIRC you will have some problems along the way.

Only after everything else is setup, upgrade to Erlang 24. As the very final step.

5 Likes

I’m having a hard time finding information on upgrading Elixir projects (Phoenix upgrade guides are easier to find)… Is this still the method you would recommend? I mean, it makes sense, I’m just surprised there’s not more info out there on the subject (that I could find).

Nope, these days I’m much more YOLO. I upgrade to the very latest and if something doesn’t work then I do binary search while downgrading.

Mind you, this means having good tests however.

1 Like