{"id":263,"date":"2013-02-02T04:27:08","date_gmt":"2013-02-01T19:27:08","guid":{"rendered":"http:\/\/blog.tanitanin.net\/?p=263"},"modified":"2013-03-08T13:15:51","modified_gmt":"2013-03-08T04:15:51","slug":"cygwin%e3%81%a7ruby-on-rails%e3%82%92%e3%81%af%e3%81%98%e3%82%81%e3%81%a6%e3%81%bf%e3%81%9f","status":"publish","type":"post","link":"https:\/\/blog.tanitanin.net\/?p=263","title":{"rendered":"Cygwin\u3067Ruby on Rails\u306e\u74b0\u5883\u3065\u304f\u308a"},"content":{"rendered":"<p>Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u52c9\u5f37\u306b\u3068Ruby on Rails\u3092\u3044\u3058\u3063\u3066\u307f\u308b\uff0e<\/p>\n<p>\u74b0\u5883\u306fCygwin + Ruby 1.8.7<\/p>\n<p>Rails\u306fgem\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306e\u3067\u307e\u305a\u306f\u3058\u3081\u306b<a href=\"http:\/\/rubygems.org\/\">RubyGems<\/a>\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff0e<\/p>\n<p>RubyGems 1.8.25\u304c\u6700\u65b0\u3060\u3063\u305f\u306e\u3067\uff0c\u3053\u308c\u3092\u843d\u3068\u3059<\/p>\n<p> $ wget http:\/\/rubyforge.org\/frs\/download.php\/76729\/rubygems-1.8.25.tgz<br \/>\n $ tar xvf rubygems-1.8.25.tgz<br \/>\n $ cd rubygems-1.8.25<br \/>\n $ ruby setup.rb<\/p>\n<p>\u6b21\u306bRubyGems\u3092\u4f7f\u3063\u3066Rails\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff0e<br \/>\n\u306f\u3058\u3081\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u59cb\u307e\u308b\u307e\u3067\u305a\u3063\u3068\u52d5\u304b\u306a\u3044\u72b6\u614b\u3060\u3063\u305f\u306e\u3067\u8a66\u3057\u306b-V\u3092\u3064\u3051\u3066\u307f\u305f\u3089\uff0cHTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u51fa\u3057\u307e\u304f\u3063\u3066\u3044\u3066\u4f55\u304b\u3092\u63a2\u3057\u3066\u308b\u3089\u3057\u3044\uff1f\uff1f<\/p>\n<p> $ gem install rails -V &#8211;include-dependencies<\/p>\n<p>\u3057\u3070\u3089\u304f\u5f85\u3064\u3068Successfully installed &#8230;\u3068\u305f\u304f\u3055\u3093\u51fa\u3066\u304f\u308b\uff0e<br \/>\nRdoc\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u304c\u6b63\u5e38\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u3089OK\uff0e<\/p>\n<p>Rails\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u306f\uff0c\u307e\u305a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308b\uff0e<br \/>\n&#8220;project&#8221;\u3068\u3044\u3046\u540d\u524d\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3042\u308c\u3070<\/p>\n<p> $ rails new project<\/p>\n<p>\u3068\u3044\u3046\u611f\u3058\u3067\u6253\u3064\u3068create &#8230;\u304c\u305f\u304f\u3055\u3093\u51fa\u3066\u304d\u305f\u5f8c\u306bbundle\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u59cb\u3081\u308b\uff0ebundle\u306fgem\u3092\u500b\u5225\u306b\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e\u3082\u306e\uff0e<br \/>\n\u3000Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.<br \/>\n\u3068\u51fa\u3066\u304d\u305f\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057&#8221;project&#8221;\u3068\u3044\u3046\u540d\u524d\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u4f5c\u6210\u3055\u308c\u308b\uff0e<\/p>\n<p>\u3053\u308c\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4f5c\u6210\u3092\u958b\u59cb\u3059\u308b\u6e96\u5099\u304c\u3067\u304d\u305f\uff0e<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u52c9\u5f37\u306b\u3068Ruby on Rails\u3092\u3044\u3058\u3063\u3066\u307f\u308b\uff0e \u74b0\u5883\u306fCygwin + Ruby 1.8.7 Rails\u306fgem\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306e\u3067\u307e\u305a\u306f\u3058\u3081\u306bRubyGems\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff0e RubyG [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[73,64],"tags":[],"class_list":["post-263","post","type-post","status-publish","format-standard","hentry","category-rails","category-64"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5lSjy-4f","jetpack-related-posts":[{"id":77,"url":"https:\/\/blog.tanitanin.net\/?p=77","url_meta":{"origin":263,"position":0},"title":"\u3055\u304f\u3089\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u306b\u3044\u308d\u3044\u308d\u306a\u3082\u306e\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b","author":"tanitanin","date":"2011\u5e748\u67089\u65e5","format":false,"excerpt":"\u6700\u8fd1\u307e\u3063\u305f\u304f\u66f4\u65b0\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u5099\u5fd8\u9332\u306a\u3069\u3002 \u3055\u304f\u3089\u306e\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u306bruby\u307e\u308f\u308a\u306e\u3082\u306e\u2026","rel":"","context":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","block_context":{"text":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","link":"https:\/\/blog.tanitanin.net\/?cat=64"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":472,"url":"https:\/\/blog.tanitanin.net\/?p=472","url_meta":{"origin":263,"position":1},"title":"Capistrano v3\u3092\u8a66\u3057\u3066\u307f\u308b(1)","author":"tanitanin","date":"2013\u5e7410\u67088\u65e5","format":false,"excerpt":"\u3053\u3093\u306b\u3061\u306f\uff0c\u305f\u306b\u305f\u306b\u3067\u3059\uff0e Deploy\u306e\u305f\u3081\u306e\u30c4\u30fc\u30eb\u3068\u3057\u3066\u6709\u540d\u306aCapistrano\u3067\u3059\u304c\uff0c6\u6708\u306b\u2026","rel":"","context":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","block_context":{"text":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","link":"https:\/\/blog.tanitanin.net\/?cat=64"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":397,"url":"https:\/\/blog.tanitanin.net\/?p=397","url_meta":{"origin":263,"position":2},"title":"Rails3.2\u3067Unicorn\u3092\u52d5\u304b\u305d\u3046\u3068\u3057\u3066\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3068\u304d\u306e\u5bfe\u51e6\u30e1\u30e2","author":"tanitanin","date":"2013\u5e743\u67088\u65e5","format":false,"excerpt":"Unicorn\u3092development\u30e2\u30fc\u30c9\u3067\u52d5\u304b\u305d\u3046\u3068\u3057\u305f\u3068\u304d\u306b\uff0cCould not find a\u2026","rel":"","context":"Rails","block_context":{"text":"Rails","link":"https:\/\/blog.tanitanin.net\/?cat=73"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":302,"url":"https:\/\/blog.tanitanin.net\/?p=302","url_meta":{"origin":263,"position":3},"title":"Rails3\u3067OmniAuth\u3092\u4f7f\u3063\u3066\u8a8d\u8a3c\u6a5f\u80fd","author":"tanitanin","date":"2013\u5e742\u670824\u65e5","format":false,"excerpt":"Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u3064\u304f\u308b\u3068\u304d\u306b\u4e00\u756a\u5927\u4e8b\u306a\u306e\u304c\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\uff0e\u6700\u8fd1\u306fTwitter\u3068\u304bFacebo\u2026","rel":"","context":"Rails","block_context":{"text":"Rails","link":"https:\/\/blog.tanitanin.net\/?cat=73"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":387,"url":"https:\/\/blog.tanitanin.net\/?p=387","url_meta":{"origin":263,"position":4},"title":"Rails3\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092nginx+unicorn\u4e0a\u3067\u52d5\u304b\u3059\u30e1\u30e2","author":"tanitanin","date":"2013\u5e743\u67088\u65e5","format":false,"excerpt":"Rails\u3092nginx\u3068unicorn\u3067\u52d5\u304b\u3059\u3068\u901f\u3044\u3068\u3044\u3046\u30a6\u30ef\u30b5\u3092\u8033\u306b\u3057\u305f\u306e\u3067\uff0c\u3055\u3063\u305d\u304f\u3084\u3063\u3066\u307f\u308b\u3053\u2026","rel":"","context":"Rails","block_context":{"text":"Rails","link":"https:\/\/blog.tanitanin.net\/?cat=73"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":445,"url":"https:\/\/blog.tanitanin.net\/?p=445","url_meta":{"origin":263,"position":5},"title":"capistrano\u3067rails\u3058\u3083\u306a\u3044\u3082\u306e\u3092deploy\u3059\u308b","author":"tanitanin","date":"2013\u5e745\u670828\u65e5","format":false,"excerpt":"\u3053\u3093\u306b\u3061\u306f\uff0c\u305f\u306b\u305f\u306b\u3067\u3059\uff0e Rails\u306e\u30c7\u30d7\u30ed\u30a4\u30c4\u30fc\u30eb\u3068\u3057\u3066\u6709\u540d\u306a\u306e\u304ccapistrano\u3067\u3059\u304c\uff0c \u2026","rel":"","context":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","block_context":{"text":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","link":"https:\/\/blog.tanitanin.net\/?cat=64"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/blog.tanitanin.net\/index.php?rest_route=\/wp\/v2\/posts\/263","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.tanitanin.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.tanitanin.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.tanitanin.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.tanitanin.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=263"}],"version-history":[{"count":12,"href":"https:\/\/blog.tanitanin.net\/index.php?rest_route=\/wp\/v2\/posts\/263\/revisions"}],"predecessor-version":[{"id":411,"href":"https:\/\/blog.tanitanin.net\/index.php?rest_route=\/wp\/v2\/posts\/263\/revisions\/411"}],"wp:attachment":[{"href":"https:\/\/blog.tanitanin.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.tanitanin.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=263"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.tanitanin.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}