{"id":488,"date":"2015-01-24T15:47:54","date_gmt":"2015-01-24T06:47:54","guid":{"rendered":"http:\/\/gomocool.net\/gomokulog\/?p=488"},"modified":"2015-01-31T17:01:40","modified_gmt":"2015-01-31T08:01:40","slug":"windows-vagrant%e3%81%a7%e3%81%96%e3%81%a3%e3%81%8f%e3%82%8a%e3%81%a8%e4%bb%ae%e6%83%b3%e7%92%b0%e5%a2%83%e6%a7%8b%e7%af%893","status":"publish","type":"post","link":"https:\/\/gomokulog.gomocool.net\/?p=488","title":{"rendered":"[Windows] Vagrant\u3067\u3056\u3063\u304f\u308a\u3068\u4eee\u60f3\u74b0\u5883\u69cb\u7bc93"},"content":{"rendered":"<p><a title=\"[Windows] Vagrant\u3067\u3056\u3063\u304f\u308a\u3068\u4eee\u60f3\u74b0\u5883\u69cb\u7bc92\" href=\"http:\/\/gomocool.net\/gomokulog\/?p=472\">\u524d\u56de<\/a>\u307e\u3067\u306b\u3001Vagrant\u3067\u4eee\u60f3\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u3066\u3001Chef\u3092\u7528\u3044\u3066\u3001php\u3084mysql\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3063\u305f\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001httpd.conf\u3092\u81ea\u52d5\u914d\u7f6e\u3059\u308b\u3002<\/p>\n<p>\u307e\u305a\u306f\u3001cookbooks\u306ehttp\u30d5\u30a9\u30eb\u30c0\u306erecipes\u30d5\u30a9\u30eb\u30c0\u3068\u540c\u3058\u968e\u5c64\u306b\u3001templates\/default\/ \u3068\u30d5\u30a9\u30eb\u30c0\u968e\u5c64\u3092\u4f5c\u308b\u3002<br \/>\n\u305d\u3057\u3066\u3001\u305d\u3053\u306b\u3001httpd.conf.erb\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3002<br \/>\n\u3053\u306ehttpd.conf.erb\u306b\u3001\u30b5\u30fc\u30d0\u4e0a\u306e\/var\/etc\/httpd.conf\u306e\u5185\u5bb9\u306a\u3069\u3092\u30b3\u30d4\u30fc\u3059\u308b\u3002<br \/>\n<a href=\"http:\/\/gomocool.net\/gomokulog\/wp-content\/uploads\/2015\/01\/473-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-498\" src=\"http:\/\/gomocool.net\/gomokulog\/wp-content\/uploads\/2015\/01\/473-1.png\" alt=\"VagrantTemplate\" width=\"349\" height=\"131\" \/><\/a><\/p>\n<p>\u305d\u3057\u3066\u3001http\/recipes\/default.rb\u306b\u4e0b\u8a18\u3092\u8ffd\u52a0\u3059\u308b\u3002<\/p>\n<pre class=\"lang:ruby decode:true\">template \"httpd.conf\" do\r\n path \"\/etc\/httpd\/conf\/httpd.conf\"\r\n source \"httpd.conf.erb\"\r\n mode 0644\r\nend<\/pre>\n<p>\u3053\u308c\u3067\u3001vagrant reload \u3068\u3059\u308c\u3070\u3001httpd.conf.erb\u306e\u5185\u5bb9\u304c\/etc\/httpd\/conf\/httpd.conf\u306b\u307e\u308b\u3063\u3068\u30b3\u30d4\u30fc\u3055\u308c\u308b\u3002<\/p>\n<p>\u3082\u3057\u3001\u4e00\u90e8\u306e\u5185\u5bb9\u3092\u66f8\u304d\u63db\u3048\u305f\u3044\u5834\u5408(\u4f8b\uff1aDocumentRoot)\u306f\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u66f8\u304d\u76f4\u3057\u3001<\/p>\n<pre class=\"lang:default decode:true\">#DocumentRoot \"\/var\/www\/html\"\r\nDocumentRoot \"&lt;%= node[:http][:docRoot] %&gt;\"<\/pre>\n<p>Vagrantfile\u306echef\u306e\u8a2d\u5b9a\u7b49\u304c\u66f8\u3044\u3066\u3042\u308b\u90e8\u5206\u306b\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u66f8\u304f\u3002<\/p>\n<pre class=\"lang:ruby decode:true\">chef.json = {\r\n    http:{\r\n    \u3000docRoot: \"\/vagrant\/\"\r\n\u3000\u3000}\r\n}<\/pre>\n<p>DocumentRoot\u306f\/vagrant\/\u3068\u306b\u306a\u308b\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3053\u306e\/vagrant\/\u306f\u3001vagrant up \u6642\u306b\u30db\u30b9\u30c8OS\u3068\u306e\u5171\u6709\u30d5\u30a9\u30eb\u30c0\u306b\u306a\u308b\u3002<br \/>\n\u3064\u307e\u308a\u3001\u5171\u6709\u30d5\u30a9\u30eb\u30c0\u3092\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u3068\u3059\u308b\u3053\u3068\u3067\u3001\u30db\u30b9\u30c8OS\u3067\u306e\u4fee\u6b63\u304c\u76f4\u3061\u306b\u4eee\u60f3OS\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u4e0a\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u4fee\u6b63\u3068\u306a\u308b\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u5171\u6709\u30d5\u30a9\u30eb\u30c0\u3092\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u3068\u3059\u308b\u5834\u5408\u306f\u3001\u3044\u304f\u3064\u304b\u554f\u984c\u304c\u3042\u308b\u3002<\/p>\n<h4>\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u304c\u66f4\u65b0\u3055\u308c\u306a\u3044\u3002<\/h4>\n<p>\u4e0b\u8a18\u306e\u3088\u3046\u306bhttpd.conf\u306e\u8a2d\u5b9a\u3092\u898b\u76f4\u3057\u3066\u304a\u3053\u3046\u3002<\/p>\n<pre class=\"lang:default decode:true \">EnableSendfile off<\/pre>\n<p>\u7406\u7531\u304c\u77e5\u308a\u305f\u3051\u308c\u3070\u3001\u30cd\u30c3\u30c8\u3067\u5148\u4eba\u305f\u3061\u306e\u6b69\u307f\u3092\u63a2\u3057\u3066\u307b\u3057\u3044\u3002<\/p>\n<h4>httpd\u30b5\u30fc\u30d3\u30b9\u304c\u81ea\u52d5\u8d77\u52d5\u3057\u306a\u3044\u3002<\/h4>\n<p>\u3053\u308c\u306f\u3001\u5171\u6709\u30d5\u30a9\u30eb\u30c0\u306e\/vagrant\/\u304c\u30de\u30a6\u30f3\u30c8\u3055\u308c\u308b\u524d\u306b\u3001httpd\u30b5\u30fc\u30d3\u30b9\u304c\u8d77\u52d5\u3057\u3088\u3046\u3068\u3059\u308b\u3053\u3068\u304c\u539f\u56e0\u3089\u3057\u3044\u3002<br \/>\n\u5148\u4eba\u305f\u3061\u304c\u3001\u8272\u3005\u3068\u3084\u3063\u3066\u3044\u308b\u304c\u3001\u3042\u304d\u3089\u3081\u3066\u6bce\u56deprovision\u3059\u308b\u306e\u304c\u697d\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><a title=\"[Windows] Vagrant\u3067\u3056\u3063\u304f\u308a\u3068\u4eee\u60f3\u74b0\u5883\u69cb\u7bc94\" href=\"http:\/\/gomocool.net\/gomokulog\/?p=501\">\u6b21\u56de<\/a>\u306f\u3001\u8907\u6570\u306e\u958b\u767a\u74b0\u5883\u3092\u7acb\u3061\u4e0a\u3052\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56de\u307e\u3067\u306b\u3001Vagrant\u3067\u4eee\u60f3\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u3066\u3001Chef\u3092\u7528\u3044\u3066\u3001php\u3084mysql\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3063\u305f\u3002 \u4eca\u56de\u306f\u3001httpd.conf\u3092\u81ea\u52d5\u914d\u7f6e\u3059\u308b\u3002 \u307e\u305a\u306f\u3001cookbooks\u306ehttp\u30d5\u30a9\u30eb\u30c0\u306erecipes\u30d5\u30a9&hellip;  <a href=\"https:\/\/gomokulog.gomocool.net\/?p=488\" class=\"more-link\">more <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[69],"tags":[49],"class_list":["post-488","post","type-post","status-publish","format-standard","hentry","category-69","tag-vagrant"],"_links":{"self":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/488","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=488"}],"version-history":[{"count":7,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/488\/revisions"}],"predecessor-version":[{"id":511,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/488\/revisions\/511"}],"wp:attachment":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=488"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=488"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=488"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}