{"id":419,"date":"2011-12-17T11:57:50","date_gmt":"2011-12-17T02:57:50","guid":{"rendered":"http:\/\/www.whoocus.com\/blog\/wordpress\/?p=419"},"modified":"2011-12-17T11:57:50","modified_gmt":"2011-12-17T02:57:50","slug":"capistrano-deploy%e3%82%a8%e3%83%a9%e3%83%bc","status":"publish","type":"post","link":"https:\/\/www.blowfish.co.jp\/?p=419","title":{"rendered":"Capistrano deploy\u30a8\u30e9\u30fc"},"content":{"rendered":"<p>WindowsXP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u958b\u767a\u6a5f\u304b\u3089\u3001CentOS5.5\u30b5\u30fc\u30d0\u3078capstrano \u3067\u4e0b\u8a18\u30a8\u30e9\u30fc\u3002<br \/>\nRuby 1.9.3 will raise SystemCallError in this case<\/p>\n<p>\u30c7\u30d7\u30ed\u30a4\u8a2d\u5b9a\u3067\u4e381\u65e5\u7a0b\u30cf\u30de\u3063\u3066\u3044\u308b\u2026\u3002<\/p>\n<p>[bash]<br \/>\n$ cap deploy<br \/>\n  * executing `deploy&#8217;<br \/>\n  * executing `deploy:update&#8217;<br \/>\n ** transaction: start<br \/>\n  * executing `deploy:update_code&#8217;<br \/>\n    executing locally: &quot;svn info http:\/\/svn.server.host\/repos\/xxxx &#8211;username hoge &#8211;password hoge &#8211;no-auth-cache  -rHEAD&quot;<br \/>\nc:\/ruby1.9.2\/lib\/ruby\/gems\/1.9.1\/gems\/capistrano-2.9.0\/lib\/capistrano\/recipes\/deploy.rb:97:<br \/>\n warning: failed to set environment variable.<br \/>\nRuby 1.9.3 will raise SystemCallError in this case.<br \/>\n*** [deploy:update_code] rolling back<br \/>\n  * executing &quot;rm -rf \/app\/xxxx\/releases\/20111217022544; true&quot;<br \/>\n    servers: [&quot;svn.server.host&quot;]<br \/>\nPassword:<br \/>\n    [svn.server.host] executing command<br \/>\n    command finished in 422ms<br \/>\nc:\/ruby1.9.2\/lib\/ruby\/gems\/1.9.1\/gems\/capistrano-2.9.0\/lib\/capistrano\/recipes\/deploy.rb:106:in &#8220;&#8217;:<br \/>\nNo such file or directory &#8211; svn info http:\/\/svn.server.host\/repos\/xxxx &#8211;username hoge &#8211;password hoge &#8211;no-auth-cache -rHEAD (Errno::ENOENT)<br \/>\n        from c:\/ruby1.9.2\/lib\/ruby\/gems\/1.9.1\/gems\/capistrano-2.9.0\/lib\/capistrano\/recipes\/deploy.rb:106:in `block in run_locally&#8217;<br \/>\n[\/bash]<\/p>\n<p>Capstrano\u306e\u30c7\u30d7\u30ed\u30a4\u6642\u3001\u30b5\u30fc\u30d0\u4e0a\u3067svn\u30b3\u30de\u30f3\u30c9\u3092\u767a\u884c\u3057\u3066\u3044\u308b\u3068\u601d\u3044\u8fbc\u3093\u3067\u3044\u305f\u306e\u3060\u304c\u3001WindowsXP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u958b\u767a\u6a5f\u3067\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u306e\u554f\u984c\u306e\u3088\u3046\u3060\u3068\u7591\u3063\u3066\u307f\u308b\u3002<\/p>\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u958b\u767a\u6a5f\u3067SVN\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u5b9f\u884c\u3067\u304d\u306a\u3044\u3068\u30c0\u30e1\u306a\u306e\u304b\uff1f<br \/>\n<a href=\"http:\/\/sourceforge.jp\/projects\/tortoisesvn\/\">TortuiseSVN<\/a> \u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u3060\u3057\u3001 Capstrano\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u308c\u3070\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u306eSVN\u53d6\u5f97\u306f\u554f\u984c\u306a\u3044\u3068\u52dd\u624b\u306b\u601d\u3044\u8fbc\u3093\u3067\u3044\u305f\u3002<br \/>\n\u3068\u306b\u304b\u304f\u3001SVN CLI \u3067\u691c\u7d22\u3057\u3066\u307f\u30661\u756a\u4e0a\u306b\u5f15\u3063\u639b\u304b\u3063\u305f\u4e0b\u8a18\u30c4\u30fc\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\uff06\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u305f\u3002<\/p>\n<p><a href=\"http:\/\/www.sliksvn.com\/en\/download\">sliksvn<\/a><\/p>\n<p>[bash]<br \/>\n$ cap deploy<br \/>\n  * executing `deploy&#8217;<br \/>\n  * executing `deploy:update&#8217;<br \/>\n ** transaction: start<br \/>\n  * executing `deploy:update_code&#8217;<br \/>\n    executing locally: &quot;svn info http:\/\/svn.server.host\/repos\/xxxx &#8211;username hoge &#8211;password hoge &#8211;no-auth-cache  -rHEAD&quot;<br \/>\n    command finished in 2406ms<br \/>\n[\/bash]<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u306e\u30a8\u30e9\u30fc\u56de\u907f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WindowsXP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u958b\u767a\u6a5f\u304b\u3089\u3001CentOS5.5\u30b5\u30fc\u30d0\u3078capstrano \u3067\u4e0b\u8a18\u30a8\u30e9\u30fc\u3002 Ruby 1.9.3 will raise SystemCallError in this case \u30c7\u30d7\u30ed\u30a4\u8a2d\u5b9a\u3067 [&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":[5,14,4],"tags":[],"class_list":["post-419","post","type-post","status-publish","format-standard","hentry","category-centos","category-ruby","category-tech"],"_links":{"self":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/419","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=419"}],"version-history":[{"count":0,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/419\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=419"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=419"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}