snake117
Best way to upgrade Phoenix?
Currently, I have Phoenix version 1.2.1 installed. If I want to upgrade Phoenix on my Mac to version 1.2.3 or 1.3.0-rc.1, what would be the best to do this? Surprisingly, I couldn’t find much information on this. Also, are there any version management tools for Elixir/Phoenix like there are in Ruby?
Thanks
Marked As Solved
chrismccord
If you’re asking how to upgrade the phoenix new project installer, you can run mix local.phoenix (now mix local.phx as of RC) and it will grab the latest one and install it so your mix phx.new task will be up to date.
Also Liked
kokolegorille
You need to update your mix.exs file with the latest versions, then…
$ rm -rf _build/ deps/ mix.lock
$ mix deps.get
$ mix compile
In case You need to update javascript too, for live_view, You can…
$ rm -rf assets/node_modules
$ npm install --prefix assets/
Then run your tests to see if there is no breaking change ![]()
seva
Might be worth adding that checking the diff via PhoenixDiff.org between the versions you are upgrading from and to, and syncing the changes to your app could be valuable for codebase maintability.
For exmaple: PhoenixDiff · v1.6.5 to v1.6.11
rlopzc
Chris McCord made a guide, follow this instructions.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









