{"id":180,"date":"2013-05-19T08:00:30","date_gmt":"2013-05-18T23:00:30","guid":{"rendered":"http:\/\/www.beeete2.com\/blog\/?p=180"},"modified":"2020-01-29T23:37:32","modified_gmt":"2020-01-29T14:37:32","slug":"mac%e3%81%abplayframework2%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.beeete2.com\/blog\/?p=180","title":{"rendered":"Mac\u306bPlayframework2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b"},"content":{"rendered":"<p>\u5b9f\u306f\u3001\u308f\u305f\u304f\u3057\u4eca\u307e\u3067\u307b\u3068\u3093\u3069\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3089\u3057\u3044\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306f\u4f7f\u3063\u305f\u3053\u3068\u304c\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\n\u3055\u3059\u304c\u306b\u3001\u305d\u308d\u305d\u308d\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3082\u89e6\u3063\u3066\u307f\u3088\u3046\u304b\u3068\u601d\u3063\u3066\u8272\u3005\u8abf\u3079\u307e\u3057\u305f\u3002<br \/>\n\u4e00\u5fdc\u3053\u306e\u696d\u754c\u306b10\u5e74\u307b\u3069\u3044\u308b\u3093\u3067\u3059\u3051\u3069\u3001\u50d5\u306e\u5468\u308a\uff08\u5927\u624bSI\u3084\u5354\u529b\u4f1a\u793e\uff09\u306a\u3069\u3067\u5727\u5012\u7684\u306b\u4f7f\u308f\u308c\u3066\u3044\u308b\u306e\u304c\u3001\u672a\u3060\u306bStruts\u306a\u3093\u3067\u3059\u3088\u306d\u3002<br \/>\n\u3067\u3082\u3001\u4eca\u304b\u3089Struts\u304b\u30fc\u3068\u601d\u3063\u3066\u8272\u3005\u8abf\u3079\u305f\u3068\u3053\u308d\u3001Playframework2\u3068\u3044\u3046\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u304c\u975e\u5e38\u306b\u4eba\u6c17\u3089\u3057\u3044\u306e\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<h2>Playframework2\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h2>\n<p>\u4e0b\u306e\u30da\u30fc\u30b8\u306e\u30ea\u30f3\u30af\u304b\u3089\u3001\u6700\u65b0\u306e\u516c\u5f0f\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<br \/>\n<a href=\"http:\/\/www.playframework-ja.org\/download\" target=\"_blank\" rel=\"noopener noreferrer\">Download \u2014 Playframework<\/a><br \/>\n<a href=\"https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2013\/05\/d279176dd55242a0ee456f13527dea95.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-182\" src=\"https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2013\/05\/d279176dd55242a0ee456f13527dea95.jpg\" alt=\"Download \u2014 Playframework-1\" width=\"988\" height=\"808\" srcset=\"https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2013\/05\/d279176dd55242a0ee456f13527dea95.jpg 988w, https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2013\/05\/d279176dd55242a0ee456f13527dea95-300x245.jpg 300w, https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2013\/05\/d279176dd55242a0ee456f13527dea95-624x510.jpg 624w\" sizes=\"(max-width: 988px) 100vw, 988px\" \/><\/a><br \/>\n\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u306f100MB\u304f\u3089\u3044\u3042\u308b\u306e\u3067\u3001\u6642\u9593\u304c\u304b\u304b\u308b\u5834\u5408\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<h2>Playframework2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>zip\u306a\u306e\u3067\u9069\u5f53\u306b\u89e3\u51cd\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n\u30a4\u30de\u30a4\u30c1\u3069\u3053\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u3044\u3044\u306e\u304b\u308f\u304b\u3089\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u50d5\u306f\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306bTools\u3068\u3044\u3046\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u5207\u3063\u3066\u3001\u305d\u3053\u306b\u8272\u3005\u914d\u7f6e\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u4eca\u56de\u3082\u305d\u3053\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>[bash]<br \/>\nmkdir -p ~\/Tools\/play<br \/>\nmv play-2.1.1 ~\/Tools\/play\/2.1.1<br \/>\n[\/bash]<\/p>\n<p>\u3082\u3061\u308d\u3093\u3001\u3053\u3093\u306a\u3068\u3053\u308d\u306b\u30d1\u30b9\u306a\u3093\u3066\u901a\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u30d1\u30b9\u3092\u901a\u3057\u307e\u3059\u3002<br \/>\n\u50d5\u306fzsh\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u307f\u306a\u3055\u307e\u306e\u30ed\u30b0\u30a4\u30f3\u30b7\u30a7\u30eb\u306b\u5408\u308f\u305b\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>[bash]<br \/>\nvim ~\/.zshrc<br \/>\n# \u672b\u5c3e\u306b\u8ffd\u52a0<br \/>\nPLAY_HOME=\/Users\/\u81ea\u5206\u306e\u30e6\u30fc\u30b6\u540d\/Tools\/play\/2.1.1<br \/>\nexport PLAY_HOME<br \/>\nPATH=$PATH:$PLAY_HOME<br \/>\nexport PATH<br \/>\n[\/bash]<\/p>\n<p>\u3067\u3001\u6700\u5f8c\u306b\u30d1\u30b9\u304c\u901a\u3063\u305f\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p>[bash]<br \/>\nwhich play<br \/>\n[\/bash]<\/p>\n<p>play\u307e\u3067\u306e\u30d1\u30b9\u304c\u8868\u793a\u3055\u308c\u308c\u3070OK\u3067\u3059\u3002<br \/>\nplay not found<br \/>\n\u307f\u305f\u3044\u306b\u8868\u793a\u3055\u308c\u305f\u3089\u3001\u591a\u5206\u30d1\u30b9\u306e\u8a2d\u5b9a\u304c\u9055\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>Playframework2\u3092\u8d77\u52d5\u3057\u3066\u307f\u308b<\/h2>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001\u6700\u521d\u306e\u30a2\u30d7\u30ea\u3092\u4f5c\u3063\u3066\u307f\u307e\u3059\u3002<br \/>\n\u3069\u3046\u305b\u6d88\u3059\u3064\u3082\u308a\u306a\u306e\u3067\u3001\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3067\u4f5c\u696d\u3002<\/p>\n<p>[bash]<br \/>\ncd ~\/Desktop<br \/>\nplay new sample_app<br \/>\n# \u3053\u3053\u3067\u8272\u3005\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u304c\u59cb\u307e\u308a\u307e\u3059\u3002<br \/>\n# \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u4f5c\u6210\u306e\u8cea\u7591\u5fdc\u7b54\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>What is the application name? [sample_app]<br \/>\n> \uff08\u30a8\u30f3\u30bf\u30fc\uff09<\/p>\n<p>Which template do you want to use for this new application? <\/p>\n<p>  1             &#8211; Create a simple Scala application<br \/>\n  2             &#8211; Create a simple Java application<\/p>\n<p>> 2\uff08\u30a8\u30f3\u30bf\u30fc\uff09<\/p>\n<p>OK, application sample_app is created.<\/p>\n<p>Have fun!<br \/>\n[\/bash]<\/p>\n<p>\u3063\u3066\u306a\u611f\u3058\u3067\u3001\u8868\u793a\u3055\u308c\u305f\u3089OK\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u591a\u5206\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u3072\u306a\u5f62\u304c\u4f5c\u6210\u3055\u308c\u305f\u72b6\u614b\u3060\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u3067\u306f\u3001\u8d77\u52d5\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>[bash]<br \/>\ncd sample_app<br \/>\nplay run sample_app<br \/>\n[\/bash]<\/p>\n<p>\u8d77\u52d5\u3057\u305f\u3089\u3001\u30d6\u30e9\u30a6\u30b6\u3092\u958b\u3044\u3066localhost:9000\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<br \/>\nPlayframework2\u306e\u30b5\u30f3\u30d7\u30eb\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308c\u3070\u3001\u7121\u4e8b\u8d77\u52d5\u5b8c\u4e86\u3067\u3059\u3002<br \/>\n<a href=\"https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2013\/05\/Welcome-to-Play-2.1.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-193\" src=\"https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2013\/05\/Welcome-to-Play-2.1.jpg\" alt=\"Welcome to Play 2.1\" width=\"1056\" height=\"716\" srcset=\"https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2013\/05\/Welcome-to-Play-2.1.jpg 1056w, https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2013\/05\/Welcome-to-Play-2.1-300x203.jpg 300w, https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2013\/05\/Welcome-to-Play-2.1-1024x694.jpg 1024w, https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2013\/05\/Welcome-to-Play-2.1-624x423.jpg 624w\" sizes=\"(max-width: 1056px) 100vw, 1056px\" \/><\/a><\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001\u4eca\u56de\u306f\u8d77\u52d5\u307e\u3067\u3057\u307e\u3057\u305f\u304c\u3001\u6b21\u56de\u4ee5\u964d\u306f\u5c11\u3057\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u3063\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b9f\u306f\u3001\u308f\u305f\u304f\u3057\u4eca\u307e\u3067\u307b\u3068\u3093\u3069\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3089\u3057\u3044\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306f\u4f7f\u3063\u305f\u3053\u3068\u304c\u3042\u308a\u307e\u305b\u3093\u3002 \u3055\u3059\u304c\u306b\u3001\u305d\u308d\u305d\u308d\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3082\u89e6\u3063\u3066\u307f\u3088\u3046\u304b\u3068\u601d\u3063\u3066\u8272\u3005\u8abf\u3079\u307e\u3057\u305f\u3002 \u4e00\u5fdc\u3053\u306e\u696d\u754c\u306b10\u5e74\u307b\u3069\u3044\u308b\u3093\u3067\u3059 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[92],"tags":[6],"views":3488,"_links":{"self":[{"href":"https:\/\/www.beeete2.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/180"}],"collection":[{"href":"https:\/\/www.beeete2.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.beeete2.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.beeete2.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.beeete2.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=180"}],"version-history":[{"count":17,"href":"https:\/\/www.beeete2.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/180\/revisions"}],"predecessor-version":[{"id":2473,"href":"https:\/\/www.beeete2.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/180\/revisions\/2473"}],"wp:attachment":[{"href":"https:\/\/www.beeete2.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.beeete2.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.beeete2.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}