Last active
August 30, 2015 10:06
-
-
Save ngtk/a87ce6e7408104918198 to your computer and use it in GitHub Desktop.
Phoenixインストールまで ref: http://qiita.com/ngtk/items/958f35de8c48659f2463
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ brew install elixir | |
| $ elixir -v | |
| Elixir 1.0.5 | |
| $ brew install postgresql | |
| $ createdb # データベース追加 | |
| $ createuser postgres # postgresユーザを追加 | |
| $ psql | |
| (username)=\# ALTER USER postgres CREATEDB; # DB作成できるように | |
| $ mix local.hex # パッケージマネージャー hexをインストール | |
| $ mix phoenix.new ./practice_phoenix | |
| $ cd ./practice_phoenix | |
| $ mix ecto.create | |
| $ mix phoenix.server | |
| [info] Running PracticePhoenix.Endpoint with Cowboy on http://localhost:4000 | |
| 30 Aug 18:56:08 - info: compiled 5 files into 2 files, copied 3 in 2181ms |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ mix help | grep phoenix | |
| mix phoenix.digest # Digests and compress static files | |
| mix phoenix.gen.channel # Generates a Phoenix channel | |
| mix phoenix.gen.html # Generates controller, model and views for an HTML based resource | |
| mix phoenix.gen.json # Generates a controller and model for a JSON based resource | |
| mix phoenix.gen.model # Generates an Ecto model | |
| mix phoenix.gen.secret # Generates a secret | |
| mix phoenix.new # Create a new Phoenix v1.0.0 application | |
| mix phoenix.routes # Prints all routes | |
| mix phoenix.server # Starts applications and their servers |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment