{"id":929,"date":"2010-06-06T13:14:17","date_gmt":"2010-06-06T04:14:17","guid":{"rendered":"http:\/\/www.kazu.tv\/blog\/?p=929"},"modified":"2010-06-06T13:14:17","modified_gmt":"2010-06-06T04:14:17","slug":"symfony_project","status":"publish","type":"post","link":"https:\/\/kazu.tv\/blog\/2010\/06\/06\/symfony_project\/","title":{"rendered":"symfony project:deploy on Windows"},"content":{"rendered":"<p>symfony\u3092\u4f7f\u3063\u3066\u5c0f\u3055\u306a\u30b7\u30b9\u30c6\u30e0\u3092\u4f5c\u3063\u3066\u3044\u308b\u3002\u624b\u5143\u306e\u30c6\u30b9\u30c8\u74b0\u5883\uff08Windows 7, XAMPP\uff09\u3067\u306f\u3068\u308a\u3042\u3048\u305a\u52d5\u304f\u30ec\u30d9\u30eb\u307e\u3067\u6765\u305f\u306e\u3067\u3001\u672c\u756a\u74b0\u5883\u306eLinux\u306b\u8f09\u305b\u308b\u3053\u3068\u306b\u3057\u305f\u3002<\/p>\n<p>symfony project:deploy \u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u3067\u7c21\u5358\u306b\u672c\u756a\u74b0\u5883\u3078\u306e\u914d\u5099\u304c\u884c\u3048\u308b\u3089\u3057\u3044\u306e\u3067\u3001\u305d\u306e\u8a2d\u5b9a\u306e\u3084\u308a\u304b\u305f\u3002\u30b3\u30de\u30f3\u30c9\u306b\u95a2\u3059\u308b\u8aac\u660e\u306f\u3001\u672c\u5bb6\u306e<a href=\"http:\/\/www.symfony-project.org\/jobeet\/1_4\/Doctrine\/en\/22\" target=\"_blank\">\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u30da\u30fc\u30b8<\/a>\u3092\u53c2\u7167\u3002<\/p>\n<h3>\u25a0\u307e\u305a\u306f\u74b0\u5883<\/h3>\n<ul>\n<li>\u30b5\u30fc\u30d0\u30fc\uff1aCentOS 5.5<\/li>\n<li>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\uff1aXAMPP 1.7.3, Windows 7<\/li>\n<li>symfony 1.4.5<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><!--more--><\/p>\n<h3>\u25a0\u5fc5\u8981\u306a\u30bd\u30d5\u30c8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>project:deploy\u306f\u5185\u90e8\u3067rsync\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u3002Linux\u3067\u3042\u308c\u3070\u554f\u984c\u306a\u3044\u3051\u3069\u3001Windows\u306e\u5834\u5408\u306f\u308f\u3056\u308f\u3056\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u3001\u3053\u3061\u3089\u306e<a target=\"_blank\" href=\"http:\/\/www.itefix.no\/i2\/node\/10650\">\u30da\u30fc\u30b8<\/a>\u3088\u308acwrsync\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n<p>\u3057\u304b\u3057\u3053\u306ecwrsync\u304c\u66f2\u8005\u3067\u3001ssh\u7d4c\u7531\u3060\u3068\u3046\u307e\u304f\u52d5\u304b\u306a\u3044\uff08\u5834\u5408\u304c\u3042\u308b\uff1f\uff09\u3089\u3057\u3044\u3002\u7d50\u8ad6\u304b\u3089\u8a00\u3046\u3068\u3001\u3053\u306e<a target=\"_blank\" href=\"http:\/\/diario.beerensalat.info\/2009\/08\/18\/new_cygnative_version_1_2_for_rsync_plink.html\">\u30da\u30fc\u30b8<\/a>\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u308bcygnative\u3068\u3044\u3046\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f7f\u3048\u3070OK\u3002\u89e3\u51cd\u3057\u3066cwrsync\u3068\u540c\u3058\u30d5\u30a9\u30eb\u30c0\u306b\u7f6e\u304f\u3002\uff08\u3061\u306a\u307f\u306b\u3053\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30da\u30fc\u30b8\u306f\u305f\u307e\u306b\u843d\u3061\u3066\u3044\u308b\u3053\u3068\u304c\u3042\u308b\u3063\u307d\u3044\uff09<\/p>\n<h3>\u25a0PuTTY\u306e\u8a2d\u5b9a<\/h3>\n<p>\u5225\u306bPuTTY\u306e\u8a2d\u5b9a\u306a\u3093\u3066\u7279\u306b\u5fc5\u8981\u306a\u3044\u3058\u3083\u3093\u3001\u3068\u601d\u3046\u3093\u3060\u3051\u3069\u3001\u3053\u308c\u306f\u3084\u3063\u3066\u304a\u3044\u305f\u65b9\u304c\u3044\u3044\u3002\u3068\u8a00\u3063\u3066\u3082\u5927\u3057\u305f\u4e8b\u306f\u306a\u304f\u3066\u3001\u4ee5\u4e0b\u306e\u60c5\u5831\u3092\u6307\u5b9a\u3057\u3066\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u300c\u4fdd\u5b58\u300d\u3092\u3059\u308b\u3002\u3053\u3053\u3067\u4fdd\u5b58\u3057\u305f\u30bb\u30c3\u30b7\u30e7\u30f3\u540d\u306f\u3068\u308a\u3042\u3048\u305a<em>session1<\/em>\u3068\u3057\u3066\u304a\u304f\u3002<\/p>\n<ul>\n<li>\u63a5\u7d9a\u3059\u308b\u30b5\u30fc\u30d0\u30fc\u306e\u30db\u30b9\u30c8\u540d<\/li>\n<li>\u30dd\u30fc\u30c8\u756a\u53f7<\/li>\n<li>\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\u540d\uff08\u3053\u308c\u91cd\u8981\uff09<\/li>\n<\/ul>\n<p>\u5f8c\u306f\u3001\u81ea\u5206\u306e\u516c\u958b\u9375\u3092\u30b5\u30fc\u30d0\u30fc\u306e.ssh\/authorized_keys\u306b\u767b\u9332\u3057\u3066\u304a\u304f\u3002\u3053\u308c\u306b\u95a2\u3057\u3066\u306fSSH\u306e\u57fa\u672c\u306a\u306e\u3067\u3053\u3053\u3067\u306f\u7701\u7565\u3002<\/p>\n<p>Pageant\u306b\u9375\u3092\u8aad\u307f\u8fbc\u307e\u305b\u305f\u72b6\u614b\u3067PuTTY\u3092\u7acb\u3061\u4e0a\u3052\u3001\u300c\u30bb\u30c3\u30b7\u30e7\u30f3\u4e00\u89a7\u300d\u306b\u8868\u793a\u3055\u308c\u3066\u308b\u30bb\u30c3\u30b7\u30e7\u30f3\u540d\u3092\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u305d\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308c\u3070OK\u3002<\/p>\n<h3>\u25a0symfony\u306e\u30bd\u30fc\u30b9\u4fee\u6b63<\/h3>\n<p>1\u3064\u306f\u30d0\u30b0\u4fee\u6b63\u3067\u30011\u3064\u306f\u516c\u958b\u9375\u8a8d\u8a3c\u3092\u4f7f\u3046\u70ba\u306e\u6a5f\u80fd\u8ffd\u52a0\u3002\u305d\u308c\u305e\u308c\u306etrac\u3067\u306e\u30c1\u30b1\u30c3\u30c8\u306f<a target=\"_blank\" href=\"http:\/\/trac.symfony-project.org\/ticket\/8177\">\u3053\u3053<\/a>\uff08#8177\uff09\u3068<a target=\"_blank\" href=\"http:\/\/trac.symfony-project.org\/ticket\/6193\">\u3053\u3053<\/a>\uff08#6193\uff09\u3002\u524d\u8005\u306f\u4fee\u6b63\u306f\u5b8c\u4e86\u3057\u3066\u308b\u3051\u3069\u307e\u3060\u6700\u65b0\u7248\uff081.4.5\uff09\u306b\u53d6\u8fbc\u307e\u308c\u3066\u3044\u306a\u3044\u3063\u307d\u3044\u3002\u5f8c\u8005\u306b\u95a2\u3057\u3066\u306f\u3001symfony\u306f\u30de\u30a4\u30ca\u30fc\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3067\u306f\u6a5f\u80fd\u8ffd\u52a0\u306f\u53d6\u8fbc\u307e\u306a\u3044\u65b9\u91dd\u306a\u306e\u3067\u30011.4\u7cfb\u3067\u306f\u30bd\u30fc\u30b9\u66f8\u304d\u63db\u3048\u3057\u304b\u624b\u304c\u306a\u3044\u3002<\/p>\n<p><a href=\"http:\/\/trac.symfony-project.org\/ticket\/8177\" target=\"_blank\">#8177<\/a>\u306e\u6700\u5f8c\u306e\u65b9\u306b\u3082\u66f8\u3044\u3066\u3042\u308b\u3051\u3069\u3001symfony\/task\/sfFilesystem.class.php\u306e291\u884c\u76ee\u4ed8\u8fd1\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\uff08stderr\u306e\u30e2\u30fc\u30c9\u3092&quot;w&quot;\u304b\u3089&quot;a&quot;\u306b\uff09\u3059\u308b\u3002\u3061\u306a\u307f\u306b<a href=\"http:\/\/trac.symfony-project.org\/ticket\/8177\" target=\"_blank\">#8177<\/a>\u306e\u6700\u521d\u306e\u307b\u3046\u306b\u66f8\u3044\u3066\u3042\u308b\u4fee\u6b63\u306f\u884c\u3046\u5fc5\u8981\u306f\u306a\u3044\u3002<\/p>\n<pre class=\"brush: php, code\">\n$descriptorspec = array(\n1 =&gt; array('pipe', 'w'), \/\/ stdout\n2 =&gt; array('pipe', 'a'), \/\/ stderr\n);\n<\/pre>\n<p>\u3082\u30461\u3064\u306f<a target=\"_blank\" href=\"http:\/\/trac.symfony-project.org\/ticket\/6193\">#6193<\/a>\u306b\u6dfb\u4ed8\u3055\u308c\u3066\u3044\u308b\u30d1\u30c3\u30c1\u3092symfony\/task\/project\/sfProjectDeployTask.class.php\u306b\u9069\u7528\u3059\u308b\u3002<\/p>\n<h3>\u25a0properties.ini\u306e\u4fee\u6b63<\/h3>\n<p>&lt;appname&gt;\/application\/config\/properties.ini \u3092\u4fee\u6b63\u3002\u3053\u308c\u306f\u76f8\u5f53\u8a66\u884c\u932f\u8aa4\u3057\u305f\u3051\u3069\u3001\u7d50\u5c40\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308c\u3070OK\u3060\u3063\u305f\u3002<\/p>\n<pre class=\"brush: plain, code\">\n[production]\n;\u30db\u30b9\u30c8\u540d\u3001\u30dd\u30fc\u30c8\u756a\u53f7\u3001\u30e6\u30fc\u30b6\u30fc\u540d\u306fPuTTY\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u4f7f\u3046\u306e\u3067\u4e0d\u8981\n;\u305f\u3060\u3057\u3001host\u306f\u7a7a\u6b04\u306b\u3059\u308b\nhost=\n;port=22\n;user=foo\ndir=\/var\/www\/html\/appname\n;ssh\u30b3\u30de\u30f3\u30c9\u306e\u4ee3\u308f\u308a\u306bcygnative\u3068plink\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u4f7f\u3046\u3002\n;session1\u3068\u3044\u3046\u306e\u306fPuTTY\u306e\u4fdd\u5b58\u3055\u308c\u305f\u30bb\u30c3\u30b7\u30e7\u30f3\nssh=&quot;'cygnative plink -load session1'&quot;<\/pre>\n<p>\u3053\u308c\u3067\u5b8c\u4e86\u3002\u5f8c\u306f\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u30c7\u30d7\u30ed\u30a4\u3055\u308c\u308b\u3002<\/p>\n<pre class=\"brush: plain, code\">\n# symfony project:deploy --go production<\/pre>\n<p>\u203b\u8ffd\u8a18<\/p>\n<p>properties.ini\u306e\u30b3\u30e1\u30f3\u30c8\u306b # \u3092\u4f7f\u3046\u3068\u3001symfony doctrine:generate-module \u3068\u304b\u3092\u5b9f\u884c\u3057\u305f\u6642\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8b66\u544a\u304c\u51fa\u308b\u3002ini\u30d5\u30a1\u30a4\u30eb\u306e\u30b3\u30e1\u30f3\u30c8\u306f ; \uff08\u30bb\u30df\u30b3\u30ed\u30f3\uff09\u3067\u59cb\u3081\u308b\u3002<\/p>\n<pre class=\"brush: plain, code\">\nDeprecated: Comments starting with '#' are deprecated in<\/pre>\n<h3>\u25a0\u88dc\u8db3<\/h3>\n<h4>\u203b1 \u9014\u4e2d\u3067\u8d77\u3053\u3063\u305f\u8272\u3005\u306a\u554f\u984c<\/h4>\n<p>\u4e0a\u3092\u898b\u3066\u3082\u3089\u3048\u308c\u3070\u5206\u304b\u308b\u901a\u308a\u3001\u5b9f\u969b\u306b\u3084\u308b\u3053\u3068\u306f\u305d\u308c\u7a0b\u96e3\u3057\u304f\u306a\u3044\u304c\u3001\u305d\u3053\u306b\u81f3\u308b\u307e\u3067\u306f\u7d50\u69cb\u8a66\u884c\u932f\u8aa4\u3092\u3057\u305f\u3002\u554f\u984c\u306f3\u3064\u3042\u3063\u305f\u3002<\/p>\n<p>1\u3064\u3081\u306fWindows\u4e0a\u3067ssh+rsync\u304c\u3046\u307e\u304f\u52d5\u304b\u306a\u3044\u3089\u3057\u3044\u3002symfony\u4ee5\u524d\u306e\u8a71\u3002cwrsync ssh\u3067\u30b0\u30b0\u308b\u3068\u6ca2\u5c71\u306e\u30da\u30fc\u30b8\u304c\u51fa\u3066\u304f\u308b\u3002\u89e3\u6c7a\u65b9\u6cd5\u306f\u3044\u304f\u3064\u304b\u3042\u308b\u307f\u305f\u3044\u3060\u3051\u3069\u3001\u4e0a\u8ff0\u306e\u901a\u308acygnative\u3068\u3044\u3046\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f7f\u3046\u3002<\/p>\n<p>\u3082\u30461\u3064\u306fsymfony\u306edeploy\u30bf\u30b9\u30af\u304cWindows\u3067\u306f\u3046\u307e\u304f\u52d5\u304b\u306a\u3044\u554f\u984c\u3002\u4e0a\u306b\u66f8\u3044\u305f\u901a\u308a\u3001\u30bd\u30fc\u30b9\u4fee\u6b63\uff08&quot;w&quot;&rarr;&quot;a&quot;\uff09\u3067\u4e57\u308a\u5207\u308b\u3002<\/p>\n<p>\u6700\u5f8c\u306e\u554f\u984c\u306f\u3001deploy\u30bf\u30b9\u30af\u306f\u30d1\u30b9\u30ef\u30fc\u30c9\u8a8d\u8a3c\u306b\u3057\u304b\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u3053\u3068\u3002\u3053\u308c\u306f\u30bd\u30fc\u30b9\u4fee\u6b63\uff0bproperties.ini\u3078\u306e\u8a2d\u5b9a\u8ffd\u52a0\u3067\u89e3\u6c7a\u3002<\/p>\n<h4>\u203b2 \u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u4e2d\u306b\u767a\u898b\u3057\u305f\u4fbf\u5229\u306a\u6280\uff08\uff1f\uff09<\/h4>\n<p>\u81ea\u5206\u7528\u30e1\u30e2\u3002<\/p>\n<p>http:\/\/blog.symfony.jp\/2008\/04\/17\/161<\/p>\n<p>symfony project:deploy &#8211;rsync-options=&quot;-azv &#8211;force &#8211;delete&quot; production<\/p>\n","protected":false},"excerpt":{"rendered":"<p>symfony\u3092\u4f7f\u3063\u3066\u5c0f\u3055\u306a\u30b7\u30b9\u30c6\u30e0\u3092\u4f5c\u3063\u3066\u3044\u308b\u3002\u624b\u5143\u306e\u30c6\u30b9\u30c8\u74b0\u5883\uff08Windows 7, XAMPP\uff09\u3067\u306f\u3068\u308a\u3042\u3048\u305a\u52d5\u304f\u30ec\u30d9\u30eb\u307e\u3067\u6765\u305f\u306e\u3067\u3001\u672c\u756a\u74b0\u5883\u306eLinux\u306b\u8f09\u305b\u308b\u3053\u3068\u306b\u3057\u305f\u3002 symfony project:dep&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,"footnotes":""},"categories":[401],"tags":[715,716,717,442,950,662,247],"class_list":["post-929","post","type-post","status-publish","format-standard","hentry","category-php","tag-cwrsync","tag-cygnative","tag-projectdeploy","tag-symfony","tag-windows","tag-xampp","tag-247"],"_links":{"self":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts\/929","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/comments?post=929"}],"version-history":[{"count":0,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts\/929\/revisions"}],"wp:attachment":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/media?parent=929"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/categories?post=929"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/tags?post=929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}