Skip to content

Instantly share code, notes, and snippets.

@smddzcy
Forked from likethesky/elixirphoenix.bash
Last active February 1, 2017 09:36
Show Gist options
  • Save smddzcy/da9ce057cdaa80ebdabf872efbcf9058 to your computer and use it in GitHub Desktop.
Save smddzcy/da9ce057cdaa80ebdabf872efbcf9058 to your computer and use it in GitHub Desktop.
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
createuser -d postgres # create the default 'postgres' user that Chris McCord seems to like -- I don't create mine w/a pw...
# Install the latest Phoenix. It will give us the command `mix phoenix.new`
mix archive.install https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez
# Create the Phoenix project
mix phoenix.new <awesome_new_project>
# - or, excluding frontend stuff
mix phoenix.new <awesome_new_project> --no-brunch
# Follow directions after that; generally, you'll additionally need to enter:
cd <awesome_new_project>
mix ecto.create # create the db
mix phoenix.server # then visit: http://localhost:4000 -- then ctrl-C here *twice* to exit server
# voila!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment