TIL: How to install Phoenix 1.4 Dev Beta

Now with Webpack as default asset bundler

Phoenix 1.4, now with webpack as the default asset bundler

Today I was trying to setup the new Phoenix 1.4 dev beta, because of its new default Webpack 4 setup (related: check out our recent post on how Flatiron School optimized Webpack for faster page loads). So I decided to share how to quickly download it and start up a project.

To install the new version, first you should make sure that you have Elixir installed (see Elixir Installation Guide). Also make sure to have Elixir’s package manager installed, too:

$ mix local.hex

If you currently have any previous versions of Phoenix installed, it would be a good idea to remove those with the following command:

$ mix archive.uninstall phx_new

Then run the Phoenix 1.4-dev installation command:

$ mix archive.install https://github.com/phoenixframework/archives/raw/master/1.4-dev/phx_new.ez

You can also install the latest supported version (1.3.3 at the moment) with this command:

$ mix archive.install https://github.com/phoenixframework/archives/raw/master/phx_new.ez

Next run mix phx.new <app-name>in the terminal and start coding with the newest version of Phoenix.



P.S.: Want to work on a mission-driven team that loves ice cream and programming in Elixir and Phoenix? We’re hiring!


To learn more about Flatiron School, visit the website, follow us on Facebook and Twitter, and visit us at upcoming events near you.

Flatiron School is a proud member of the WeWork family. Check out our sister technology blogs WeWork Technology and Making Meetup.