Skip to content

Instantly share code, notes, and snippets.

@orodio
Created April 11, 2017 23:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save orodio/3e009334ae53b286e62c59647aa23467 to your computer and use it in GitHub Desktop.
Save orodio/3e009334ae53b286e62c59647aa23467 to your computer and use it in GitHub Desktop.
elixir phoenix mac postgres
$ mix phoenix.new <NAME>
$ cd <NAME>
$ mix ecto.create

// if postgres errors
  $ brew install postgresql
  $ psql postgres
  postgres=# CREATE ROLE postgres;
  postgres=# ALTER ROLE postgres LOGIN;
  postgres=# ALTER ROLE postgres CREATEDB;
  postgres=# \q
// fi postgres errors

$ mix ecto.create
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment