Skip to content

Instantly share code, notes, and snippets.

@eskadah
Forked from likethesky/elixirphoenix.bash
Created January 4, 2018 14:31
Show Gist options
  • Save eskadah/b7641b8c9d93dbbe36cf1dd6d5ba3572 to your computer and use it in GitHub Desktop.
Save eskadah/b7641b8c9d93dbbe36cf1dd6d5ba3572 to your computer and use it in GitHub Desktop.

Revisions

  1. @likethesky likethesky revised this gist Sep 30, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions elixirphoenix.bash
    Original file line number Diff line number Diff line change
    @@ -6,6 +6,7 @@ $ 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:
  2. @likethesky likethesky revised this gist Sep 30, 2015. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion elixirphoenix.bash
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,9 @@ $ brew install postgresql # You'll need postgres to do this... you m
    $ 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...
    $ mix archive.install https://github.com/phoenixframework/phoenix/releases/download/v0.17.0/phoenix_new-0.17.0.ez # Answer y to any Qs

    # Use the latest Phoenix from here: http://www.phoenixframework.org/docs/installation -- currently this is 1.0.3
    $ 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:

  3. @likethesky likethesky renamed this gist Aug 22, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. @likethesky likethesky revised this gist Aug 21, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion elixirphoenix.sh
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@ $ brew install postgresql # You'll need postgres to do this... you m

    $ brew install elixir
    $ mix local.hex # Answer y to any Qs
    $ createuser -d postgres # create the default 'postgres' user that José seems to like -- I don't create mine w/a pw...
    $ createuser -d postgres # create the default 'postgres' user that Chris McCord seems to like -- I don't create mine w/a pw...
    $ mix archive.install https://github.com/phoenixframework/phoenix/releases/download/v0.17.0/phoenix_new-0.17.0.ez # Answer y to any Qs

    # To make a Phoenix app, first CD to a location under which you'd like your app created, then enter:
  5. @likethesky likethesky created this gist Aug 21, 2015.
    19 changes: 19 additions & 0 deletions elixirphoenix.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    $ 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 José seems to like -- I don't create mine w/a pw...
    $ mix archive.install https://github.com/phoenixframework/phoenix/releases/download/v0.17.0/phoenix_new-0.17.0.ez # Answer y to any Qs

    # 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!