Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Installing Elixir & the Phoenix framework with Homebrew on OS X
$ brew update && brew doctor # Repeat, until you've done *all* the Dr. has ordered!
$ brew install postgresql # You'll need postgres to do this... you may also need to 'initdb' as well. Google it.
$ brew install elixir
$ mix local.hex # Answer y to any Qs
$ createuser -d postgres # create the default 'postgres' user that Chris McCord seems to like -- I don't create mine w/a pw...
# Use the latest Phoenix from here: http://www.phoenixframework.org/docs/installation -- currently this is 1.0.3
# ** Answer y to any Qs **
$ mix archive.install https://github.com/phoenixframework/phoenix/releases/download/v1.0.3/phoenix_new-1.0.3.ez
# To make a Phoenix app, first CD to a location under which you'd like your app created, then enter:
$ mix phoenix.new <my_new_app_name> # Answer y to any Qs
# Follow directions after that; generally, you'll additionally need to enter:
$ cd <my_new_app_name>
$ mix ecto.create # Answer y to any Qs
$ mix phoenix.server # then visit: http://localhost:4000 -- then ctrl-C here *twice* to exit server
# voila!
@originalhat

This comment has been minimized.

Copy link

originalhat commented Jul 23, 2017

To get the latest phoenix:

mix archive.install https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez
@HusseinMorsy

This comment has been minimized.

Copy link

HusseinMorsy commented Feb 5, 2019

You can now easily install the latest phoenix version with:

$ mix archive.install hex phx_new 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.