{"id":2244,"date":"2015-06-03T21:58:15","date_gmt":"2015-06-03T12:58:15","guid":{"rendered":"http:\/\/www.whoocus.com\/blog\/?p=2244"},"modified":"2016-07-14T23:52:14","modified_gmt":"2016-07-14T14:52:14","slug":"elixir-phoenix-%e4%ba%8b%e5%a7%8b%e3%82%81","status":"publish","type":"post","link":"https:\/\/www.blowfish.co.jp\/?p=2244","title":{"rendered":"Phoenix \u521d\u3081\u3066\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u4f5c\u6210"},"content":{"rendered":"<p>\u3044\u304d\u306a\u308a\u30a8\u30e9\u30fc\u3002\u3069\u3046\u3084\u3089\u793e\u5185\u30d7\u30ed\u30ad\u30b7\u304c\u90aa\u9b54\u3057\u3066\u3001\u793e\u5916\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u3064\u306a\u304c\u3089\u306a\u3044\u3089\u3057\u3044\u3002<\/p>\n<p>[bash]<br \/>\n$ mix local.hex<br \/>\n** (Mix) Could not access url https:\/\/s3.amazonaws.com\/s3.hex.pm\/installs\/list.csv,<br \/>\nerror: {:failed_connect, [{:to_address, {&#8216;s3.amazonaws.com&#8217;, 443}},<br \/>\n{:inet, [:inet], :econnrefused}]}<br \/>\n[\/bash]<\/p>\n<p>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u304c\u7e4b\u304c\u308b\u74b0\u5883\u3067\u3001\u6c17\u3092\u53d6\u308a\u76f4\u3057\u3066\u3082\u3046\u4e00\u5ea6\u3002<\/p>\n<p>[bash]<br \/>\n$ mix local.hex<br \/>\n[\/bash]<br \/>\n\u3059\u308b\u3068\u3001\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4e0b\u306b .mix\/archives\/hex.ez \u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u308b\u3002<\/p>\n<p>[bash]<br \/>\n$ mix archive.install https:\/\/github.com\/phoenixframework\/phoenix\/releases\/download\/v0.13.1\/phoenix_new-0.13.1.ez<br \/>\n[\/bash]<br \/>\n\u3059\u308b\u3068\u3001\u5148\u7a0b\u3068\u540c\u3058\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b .mix\/archives\/phoenix_new-0.13.1.ez \u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u308b\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3002<br \/>\n[bash]<br \/>\n$ mix phoenix.new hello_phoenix &#8211;database mysql<br \/>\n[\/bash]<br \/>\n\u203b\u3053\u3053\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\u3092 HelloPhoenix \u3068\u3057\u305f\u3089\u6012\u3089\u308c\u305f\u3002\u547d\u540d\u898f\u5247\u304c\u3042\u308b\u306e\u304b\u8abf\u67fb\u4e2d\u3002<\/p>\n<p>[bash]<br \/>\n$ mix phoenix.server<br \/>\n[error] Could not start watcher &quot;node&quot;, executable does not exist<br \/>\n[\/bash]<\/p>\n<p>node\u304c\u306a\u3044\u3068\u6012\u3089\u308c\u308b\u306e\u3067\u3001<a href=\"https:\/\/nodejs.org\/download\/\" target=\"_blank\">nodejs<\/a>\u306e\u30b5\u30a4\u30c8\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3002<\/p>\n<p>\u518d\u5ea6\u5b9f\u884c\u3002<\/p>\n<p>[bash]<br \/>\n$ mix phoenix.new hello_phoenix<br \/>\n* creating hello_phoenix\/config\/config.exs<br \/>\n* creating hello_phoenix\/config\/dev.exs<br \/>\n* creating hello_phoenix\/config\/prod.exs<br \/>\n* creating hello_phoenix\/config\/prod.secret.exs<br \/>\n* creating hello_phoenix\/config\/test.exs<br \/>\n* creating hello_phoenix\/lib\/hello_phoenix.ex<br \/>\n* creating hello_phoenix\/lib\/hello_phoenix\/endpoint.ex<br \/>\n* creating hello_phoenix\/priv\/static\/robots.txt<br \/>\n* creating hello_phoenix\/test\/controllers\/page_controller_test.exs<br \/>\n* creating hello_phoenix\/test\/views\/error_view_test.exs<br \/>\n* creating hello_phoenix\/test\/views\/page_view_test.exs<br \/>\n* creating hello_phoenix\/test\/support\/conn_case.ex<br \/>\n* creating hello_phoenix\/test\/support\/channel_case.ex<br \/>\n* creating hello_phoenix\/test\/test_helper.exs<br \/>\n* creating hello_phoenix\/web\/controllers\/page_controller.ex<br \/>\n* creating hello_phoenix\/web\/templates\/layout\/application.html.eex<br \/>\n* creating hello_phoenix\/web\/templates\/page\/index.html.eex<br \/>\n* creating hello_phoenix\/web\/views\/error_view.ex<br \/>\n* creating hello_phoenix\/web\/views\/layout_view.ex<br \/>\n* creating hello_phoenix\/web\/views\/page_view.ex<br \/>\n* creating hello_phoenix\/web\/router.ex<br \/>\n* creating hello_phoenix\/web\/web.ex<br \/>\n* creating hello_phoenix\/mix.exs<br \/>\n* creating hello_phoenix\/README.md<br \/>\n* creating hello_phoenix\/lib\/hello_phoenix\/repo.ex<br \/>\n* creating hello_phoenix\/test\/support\/model_case.ex<br \/>\n* creating hello_phoenix\/.gitignore<br \/>\n* creating hello_phoenix\/brunch-config.js<br \/>\n* creating hello_phoenix\/package.json<br \/>\n* creating hello_phoenix\/web\/static\/css\/app.scss<br \/>\n* creating hello_phoenix\/web\/static\/js\/app.js<br \/>\n* creating hello_phoenix\/web\/static\/vendor\/phoenix.js<br \/>\n* creating hello_phoenix\/priv\/static\/images\/phoenix.png<br \/>\n[\/bash]<\/p>\n<p>[bash]<br \/>\nFetch and install dependencies? [Yn] Y<br \/>\n* running npm install<br \/>\n* running mix deps.get<\/p>\n<p>We are all set! Run your Phoenix application:<\/p>\n<p>    $ cd hello_phoenix<br \/>\n    $ mix phoenix.server<\/p>\n<p>You can also run it inside IEx (Interactive Elixir) as:<\/p>\n<p>    $ iex -S mix phoenix.server<\/p>\n<p>[\/bash]<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30e9\u30af\u30b7\u30e7\u30f3\u306b\u8a18\u8ff0\u3057\u3066\u3042\u308b\u3088\u3046\u306b\u4e0b\u8a18\u3067\u30b5\u30fc\u30d0\u3092\u8d77\u52d5\u3059\u308b\u3002<\/p>\n<p>[bash]<br \/>\n$ cd hello_phoenix<br \/>\n$ mix phoenix.server<br \/>\n[\/bash]<\/p>\n<p>\u30d6\u30e9\u30a6\u30b6\u3092\u8d77\u52d5\u3057\u3066\u3001<a href=\"http:\/\/localhost:4000\/\" target=\"_blank\">http:\/\/localhost:4000\/<\/a> \u3092\u958b\u304f\u3068\u4e0b\u8a18\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u3002<\/p>\n<p><a href=\"https:\/\/www.blowfish.co.jp\/wp-content\/uploads\/2015\/06\/phoenix.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.blowfish.co.jp\/wp-content\/uploads\/2015\/06\/phoenix.png\" alt=\"phoenix\" width=\"724\" height=\"544\" class=\"aligncenter size-full wp-image-2269\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3044\u304d\u306a\u308a\u30a8\u30e9\u30fc\u3002\u3069\u3046\u3084\u3089\u793e\u5185\u30d7\u30ed\u30ad\u30b7\u304c\u90aa\u9b54\u3057\u3066\u3001\u793e\u5916\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u3064\u306a\u304c\u3089\u306a\u3044\u3089\u3057\u3044\u3002 [bash] $ mix local.hex ** (Mix) Could not access url https:\/\/s3.a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"saved_in_kubio":false,"footnotes":""},"categories":[53,54,4],"tags":[],"class_list":["post-2244","post","type-post","status-publish","format-standard","hentry","category-elixir","category-phoenix-framework","category-tech"],"_links":{"self":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/2244","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2244"}],"version-history":[{"count":15,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/2244\/revisions"}],"predecessor-version":[{"id":2451,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/2244\/revisions\/2451"}],"wp:attachment":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}