{"id":479,"date":"2013-10-08T21:08:02","date_gmt":"2013-10-08T12:08:02","guid":{"rendered":"http:\/\/blog.tanitanin.net\/?p=479"},"modified":"2013-10-08T21:15:51","modified_gmt":"2013-10-08T12:15:51","slug":"capistrano-v3%e3%82%92%e8%a9%a6%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b2","status":"publish","type":"post","link":"https:\/\/blog.tanitanin.net\/?p=479","title":{"rendered":"Capistrano v3\u3092\u8a66\u3057\u3066\u307f\u308b(2)"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\uff0c\u305f\u306b\u305f\u306b\u3067\u3059\uff0e<\/p>\n<p><a href=\"http:\/\/blog.tanitanin.net\/?p=472\" title=\"Capistrano v3\u3092\u8a66\u3057\u3066\u307f\u308b(1)\">\u524d\u56de<\/a>\uff0cCapistrano v3\u3092\u5165\u308c\u3066\u307f\u305f\u306e\u3067\uff0c<br \/>\n\u4e2d\u8eab\u304c\u3069\u3046\u306a\u3063\u3066\u3044\u308b\u306e\u304b\u898b\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\uff0e<\/p>\n<p>\u3061\u3083\u3093\u3068\u3057\u305f\u5185\u5bb9\u306f<a href=\"http:\/\/www.capistranorb.com\/documentation\/getting-started\/preparing-your-application\/\" title=\"http:\/\/www.capistranorb.com\/documentation\/getting-started\/preparing-your-application\/\" target=\"_blank\">\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3092\u53c2\u8003\u306b\uff0e<\/p>\n<p>* \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u9020<\/p>\n<p>Capistrano v3\u3067\u306f\uff0c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30d5\u30a1\u30a4\u30eb\/\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u751f\u6210\u3055\u308c\u307e\u3057\u305f\uff0e\u4e2d\u306b\u66f8\u3044\u3066\u3042\u308b\u30b5\u30f3\u30d7\u30eb\u3092\u773a\u3081\u3066\u307f\u308b\u3068\uff0c\u3060\u3044\u305f\u3044\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4f7f\u3048\u3070\u3044\u3044\u3088\u3046\u3067\u3059\uff0e<\/p>\n<pre>\r\ncapis-test\r\n L Capfile           # capistrano\/rvm\u306a\u3069\u3092require\u3059\u308b\r\n L config\r\n   L deploy.rb       # deploy\u30bf\u30b9\u30af\u306e\u8a2d\u5b9a\u3092\u3059\u308b\r\n   L deploy          # Stage\u3054\u3068\u306e\u5404\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a\u3092\u5165\u308c\u308b\r\n     L staging.rb    # \u30c6\u30b9\u30c8\u7528\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a\r\n     L production.rb # \u672c\u756a\u7528\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a\r\n L lib\r\n   L capistrano\r\n     L tasks         # \u8ffd\u52a0\u3059\u308b\u30bf\u30b9\u30af\u3092*.cap\u306b\u307e\u3068\u3081\u3066\u5165\u308c\u308b\u30d5\u30a9\u30eb\u30c0\r\n<\/pre>\n<p>v2\u307e\u3067\u306f\u3044\u308d\u3044\u308d\u306a\u8a2d\u5b9a\u3092\u3054\u3061\u3083\u307e\u305c\u306b\u66f8\u3044\u3066\u3044\u308b\u3053\u3068\u304c\u591a\u304b\u3063\u305f\u306e\u3067\u3059\u304c\uff0cv3\u3067\u306f\u304d\u3061\u3093\u3068\u307e\u3068\u307e\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3068\u3066\u3082\u66f8\u304d\u3084\u3059\u3044\u5370\u8c61\u3092\u53d7\u3051\u307e\u3059\uff0e<\/p>\n<p>\u307e\u305f\uff0cgit\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u306f\u8f09\u305b\u3089\u308c\u306a\u3044\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3084log\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306a\u3069\u306f,:linked_files\u3084:linked_dirs\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u7528\u3044\u308b\u3053\u3068\u3067.gitignore\u306b\u6307\u5b9a\u3057\u3066\u3044\u3066\u3082\u3061\u3083\u3093\u3068\u30c7\u30d7\u30ed\u30a4\u3067\u304d\u308b\u3088\u3046\u5de5\u592b\u3055\u308c\u3066\u3044\u307e\u3059\uff0e<br \/>\n\u8a2d\u5b9a\u7ba1\u7406\u306e\u9762\u5012\u81ed\u3055\u3068\u306f\u304a\u3055\u3089\u3070\u3067\u3059\uff0e<\/p>\n<p>\u30bf\u30b9\u30af\u306e\u66f8\u304d\u65b9\u3082\u304b\u306a\u308a\u5909\u308f\u3063\u3066\u3044\u307e\u3057\u305f\uff0eon\u3067\u306e\u5f79\u5272\u6307\u5b9a\u306a\u3069\u304b\u306a\u308a\u898b\u3084\u3059\u305d\u3046\u3067\u3059\u306d\uff0e<\/p>\n<pre>\r\ntask :touch_hoge do\r\n  on roles(:app) do\u3000|host|\r\n    # execute :touch, \"hogehoge\"\r\n  end\r\nend\r\n<\/pre>\n<p>\u307e\u3060\u307e\u3060\u30c7\u30d7\u30ed\u30a4\u3057\u3066\u306a\u3044\u3067\u3059\u304c\uff0c\u306a\u3093\u3060\u304b\u3068\u3063\u3066\u3082\u4fbf\u5229\u305d\u3046\u3067\u3059\u306d\uff0e<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\uff0c\u305f\u306b\u305f\u306b\u3067\u3059\uff0e \u524d\u56de\uff0cCapistrano v3\u3092\u5165\u308c\u3066\u307f\u305f\u306e\u3067\uff0c \u4e2d\u8eab\u304c\u3069\u3046\u306a\u3063\u3066\u3044\u308b\u306e\u304b\u898b\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\uff0e \u3061\u3083\u3093\u3068\u3057\u305f\u5185\u5bb9\u306f\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u8003\u306b\uff0e * \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u9020 Capistrano v [&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":[64],"tags":[74],"class_list":["post-479","post","type-post","status-publish","format-standard","hentry","category-64","tag-capistrano"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5lSjy-7J","jetpack-related-posts":[{"id":445,"url":"https:\/\/blog.tanitanin.net\/?p=445","url_meta":{"origin":479,"position":0},"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":[]},{"id":472,"url":"https:\/\/blog.tanitanin.net\/?p=472","url_meta":{"origin":479,"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":557,"url":"https:\/\/blog.tanitanin.net\/?p=557","url_meta":{"origin":479,"position":2},"title":"VMWare\u306bArch Linux\u3092\u5165\u308c\u3066\u307f\u305f","author":"tanitanin","date":"2014\u5e748\u670816\u65e5","format":false,"excerpt":"VMWare\u306bArch Linux\u3092\u5165\u308c\u3066\u307f\u307e\u3057\u305f\uff0e \u30d0\u30fc\u30b8\u30e7\u30f3\u306f2014.08.01\u3067\u3057\u305f\uff0e \u53c2\u8003\u2026","rel":"","context":"\u672a\u5206\u985e","block_context":{"text":"\u672a\u5206\u985e","link":"https:\/\/blog.tanitanin.net\/?cat=1"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":523,"url":"https:\/\/blog.tanitanin.net\/?p=523","url_meta":{"origin":479,"position":3},"title":"\u300c\u73fe\u5728\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u4e2d\u306e\u305f\u3081\u3001\u3057\u3070\u3089\u304f\u306e\u9593\u3054\u5229\u7528\u3044\u305f\u3060\u3051\u307e\u305b\u3093\u300d\u3063\u3066WordPress\u3067\u8868\u793a\u3055\u308c\u305f","author":"tanitanin","date":"2014\u5e748\u67084\u65e5","format":false,"excerpt":"WordPress\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u66f4\u65b0\u3057\u3066\u3044\u308b\u9014\u4e2d\u3067\uff0c \u300c\u73fe\u5728\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u4e2d\u306e\u305f\u3081\u3001\u3057\u3070\u3089\u304f\u306e\u9593\u3054\u5229\u7528\u2026","rel":"","context":"\u672a\u5206\u985e","block_context":{"text":"\u672a\u5206\u985e","link":"https:\/\/blog.tanitanin.net\/?cat=1"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":697,"url":"https:\/\/blog.tanitanin.net\/?p=697","url_meta":{"origin":479,"position":4},"title":"ArchLinux\u3067IP\u3092\u9759\u7684\u306b\u56fa\u5b9a\u3059\u308b","author":"tanitanin","date":"2014\u5e7410\u67083\u65e5","format":false,"excerpt":"CentOS 7 \u3084 Ubuntu 14.04 \u306a\u3069\u306b\u6f0f\u308c\u305a\uff0cArch Linux \u3067\u3082\u30ec\u30ac\u30b7\u30fc\u306a\u30cd\u2026","rel":"","context":"\u672a\u5206\u985e","block_context":{"text":"\u672a\u5206\u985e","link":"https:\/\/blog.tanitanin.net\/?cat=1"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":75,"url":"https:\/\/blog.tanitanin.net\/?p=75","url_meta":{"origin":479,"position":5},"title":"Visual C++ 2010\u3000\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u8a2d\u5b9a\u306a\u3069","author":"tanitanin","date":"2011\u5e749\u670822\u65e5","format":false,"excerpt":"\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u3044\u3061\u3044\u3061\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306b\u8a2d\u5b9a\u3059\u308b\u306e\u9762\u5012\u3060\u3068\u601d\u3063\u3066\u3044\u305f\u3089\u3001\u5171\u901a\u8a2d\u5b9a\u3089\u3057\u304d\u3082\u306e\u304c\u3042\u3063\u305f\u306e\u3067\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\/479","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=479"}],"version-history":[{"count":8,"href":"https:\/\/blog.tanitanin.net\/index.php?rest_route=\/wp\/v2\/posts\/479\/revisions"}],"predecessor-version":[{"id":487,"href":"https:\/\/blog.tanitanin.net\/index.php?rest_route=\/wp\/v2\/posts\/479\/revisions\/487"}],"wp:attachment":[{"href":"https:\/\/blog.tanitanin.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=479"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.tanitanin.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=479"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.tanitanin.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=479"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}