{"id":303,"date":"2016-07-09T23:27:45","date_gmt":"2016-07-09T14:27:45","guid":{"rendered":"https:\/\/www.agent-grow.com\/self20percent\/?p=303"},"modified":"2016-07-11T12:53:18","modified_gmt":"2016-07-11T03:53:18","slug":"%e3%81%aa%e3%82%93%e3%81%a6%e3%81%93%e3%81%a3%e3%81%9fphpstorm%e3%81%ae%e3%83%a9%e3%82%a4%e3%83%b3%e3%82%bb%e3%83%b3%e3%82%b9%e3%81%8c%e5%88%87%e3%82%8c%e3%81%a1%e3%82%83%e3%81%a3%e3%81%9f","status":"publish","type":"post","link":"https:\/\/www.agent-grow.com\/self20percent\/2016\/07\/09\/%e3%81%aa%e3%82%93%e3%81%a6%e3%81%93%e3%81%a3%e3%81%9fphpstorm%e3%81%ae%e3%83%a9%e3%82%a4%e3%83%b3%e3%82%bb%e3%83%b3%e3%82%b9%e3%81%8c%e5%88%87%e3%82%8c%e3%81%a1%e3%82%83%e3%81%a3%e3%81%9f\/","title":{"rendered":"\u306a\u3093\u3066\u3053\u3063\u305fPhpStorm\u306e\u30e9\u30a4\u30f3\u30bb\u30f3\u30b9\u304c\u5207\u308c\u3061\u3083\u3063\u305f(\u00b4\uff1b\u03c9\uff1b\uff40)"},"content":{"rendered":"<p>&nbsp;<\/p>\n<h1>\u5f61(\uff9f)(\uff9f)\u300c\u304a\u3063\u3057VisualStudioCode\u3067\u30c7\u30d0\u30c3\u30b0\u74b0\u5883\u3092\u4f5c\u3063\u3066\u307f\u308b\u304b\u300d<\/h1>\n<p>\u3063\u3066\u3053\u3068\u3067\u3001\u6700\u8fd1\u306fVisualStudioCode\u3067\u4f5c\u696d\u3092\u3059\u308b\u3053\u3068\u3082\u591a\u3044\u306e\u3067\u3001\u3064\u3044\u3067\u3060\u304b\u3089PHP\u306e\u30c7\u30d0\u30c3\u30b0\u74b0\u5883\u3082\u4f5c\u3063\u3061\u3083\u304a\u3046\u304b\u306a\u30fc\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #ff0000;\"><strong>VisualStudioCode\u306f\u6700\u8fd1\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3067\u3064\u3044\u306b\u5f85\u671b\u306e\u30bf\u30d6\u304c\u5b9f\u88c5\u3055\u308c\u305f\u3088\u3046\u3067\u3059\uff01<\/strong><\/span><\/p>\n<p>\u3053\u308c\u306f\u30db\u30f3\u30c8\u4fbf\u5229\u3067\u3059\u306d\u3002<span style=\"color: #808080;\"><del>\u3068\u3044\u3046\u304b\u3053\u306e\u6a5f\u80fd\u304c\u306a\u304f\u3066\u3080\u3057\u308d\u4e0d\u4fbf\u3060\u3063\u305f\uff01<\/del><\/span><\/p>\n<p>\u6700\u8fd1\u306eMS\u3055\u3093\u306f\u307b\u3093\u3068\u3044\u3044\u4ed5\u4e8b\u3057\u3066\u307e\u3059\u306a\u3041<\/p>\n<p><span style=\"color: #999999;\">\u306a\u304a\u3001\u3053\u306e\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u308b\u6642\u70b9\u3067\u306e\u79c1\u3067\u3059\u304c\u3001\u8efd\u304f\u3044\u3063\u3071\u3044\u3084\u3063\u3061\u307e\u3044\u307e\u3057\u305f(<em>\u00b4\u03c9\uff40<\/em>)<\/span><\/p>\n<p><span style=\"color: #999999;\">\u8aa4\u5b57\u8131\u5b57\u304c\u3042\u308a\u307e\u3057\u305f\u3089\u3054\u5bb9\u8d66\u306e\u307b\u3069\u3092<\/span><!--more--><\/p>\n<p>&nbsp;<\/p>\n<h1>\u3068\u308a\u3042\u3048\u305a\u74b0\u5883\u6e96\u5099<\/h1>\n<p>\u4eca\u56de\u306e\u74b0\u5883\u306f\u666e\u6bb5\u4ed5\u4e8b\u3067\u3082\u4f7f\u7528\u3057\u3066\u3044\u308bVagrant\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>VM\u4e0a\u306b\u3064\u304f\u308b\u74b0\u5883\u3067\u3059\u304c\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<p>\u30fbCentOS7<\/p>\n<p>\u30fbNginx<\/p>\n<p>\u30fbPHP7 &amp;\u00a0PHP-FPM &amp; Xdebug<\/p>\n<p>\u74b0\u5883\u306fAnsible\u3067\u69cb\u7bc9\u3057\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u6253\u3063\u305f\u30b3\u30de\u30f3\u30c9\u306f<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\r\nvagrant up\r\n\r\nansible-playbook -i hosts -vvv \u00a0site.yml\r\n\r\n<\/pre>\n<p>\u3060\u3051\u3002<\/p>\n<p>playbook\u3082\u65e2\u306b\u8cc7\u7523\u3068\u3057\u3066\u6301\u3063\u3066\u3044\u308b\u3068\u3053\u3046\u3044\u3046\u6642\u306b\u5730\u5473\u306b\u4fbf\u5229\u3067\u3059\u306a\u3041(<em>\u00b4\u03c9\uff40<\/em>)\u3002<\/p>\n<p>\u305d\u306e\u30d7\u30ec\u30a4\u30d6\u30c3\u30af\u306e\u5185\u5bb9\u306f\u307e\u305f\u5225\u9014\u6a5f\u4f1a\u304c\u3042\u308c\u3070\u30fb\u30fb\u30fb\u3002<\/p>\n<p>\u5f53\u7136\u306e\u3053\u3068\u306a\u304c\u3089\u30db\u30b9\u30c8OS\u3068\u30b2\u30b9\u30c8OS\u3068\u3067\u30d5\u30a9\u30eb\u30c0\u3092\u5171\u6709\u3057\u3066\u3001\u305d\u3053\u306bPHP\u3092\u7f6e\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f<code>\/vagrant<\/code>\u30d5\u30a9\u30eb\u30c0\u306bPHP\u3092\u7f6e\u3044\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u3064\u307e\u308aNginx\u306eDocumentRoot\u3082 <code>\/vagrant<\/code>\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h1>VisualStudioCode\u306e\u8a2d\u5b9a<\/h1>\n<p>vscode\u306b\u6700\u4f4e\u9650\u5fc5\u8981\u306a\u306e\u306fPHP Debug\u3068\u3044\u3046Extension\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>vscode\u4e0a\u3067<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nF1, type\r\next install\r\nphp-debug.\r\n<\/pre>\n<p>\u3068\u3084\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>PHPDebug\u304c\u5019\u88dc\u306b\u51fa\u3066\u304d\u305f\u3089\u8e8a\u8e87\u306a\u304f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>&nbsp;<\/p>\n<h1>launch.json\u306e\u8a2d\u5b9a<\/h1>\n<p>\u4eca\u56de\u8a2d\u5b9a\u3057\u305flaunch.json\u306e\u5185\u5bb9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n{\r\n&quot;version&quot;: &quot;0.2.0&quot;,\r\n&quot;configurations&quot;: &#x5B;\r\n{\r\n&quot;name&quot;: &quot;Listen for XDebug&quot;,\r\n&quot;type&quot;: &quot;php&quot;,\r\n&quot;request&quot;: &quot;launch&quot;,\r\n&quot;serverSourceRoot&quot;: &quot;\/vagrant\/&quot;,\r\n&quot;localSourceRoot&quot;: &quot;${workspaceRoot}&quot;\r\n\r\n&quot;port&quot;: 9000\r\n},\r\n{\r\n&quot;name&quot;: &quot;Launch currently open script&quot;,\r\n&quot;type&quot;: &quot;php&quot;,\r\n&quot;request&quot;: &quot;launch&quot;,\r\n&quot;program&quot;: &quot;${file}&quot;,\r\n&quot;cwd&quot;: &quot;${fileDirname}&quot;,\r\n&quot;port&quot;: 9000\r\n}\r\n]\r\n}\r\n\r\n<\/pre>\n<p>\u30dd\u30a4\u30f3\u30c8\u306f<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\r\n&quot;serverSourceRoot&quot;: &quot;\/vagrant\/&quot;,\r\n&quot;localSourceRoot&quot;: &quot;${workspaceRoot}&quot;\r\n\r\n<\/pre>\n<p>\u306e\u7b87\u6240\u3059\u306d<\/p>\n<p>\u3053\u3053\u307e\u3067\u8a2d\u5b9a\u3067\u304d\u305f\u3089\u5f8c\u306f\u4ed6\u306eIDE\u3068\u540c\u3058\u3088\u3046\u306b\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u306a\u308a\u3057\u3066\u3001\u30c7\u30d0\u30c3\u30b0\u3092\u958b\u59cb\u3059\u308b\u3068\u3001\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\u3067\u505c\u6b62\u3057\u3001\u5909\u6570\u306e\u4e2d\u8eab\u306a\u3069\u304c\u898b\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u305e(<em>\u00b4\u03c9\uff40<\/em>)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; \u5f61(\uff9f)(\uff9f)\u300c\u304a\u3063\u3057VisualStudioCode\u3067\u30c7\u30d0\u30c3\u30b0\u74b0\u5883\u3092\u4f5c\u3063\u3066\u307f\u308b\u304b\u300d \u3063\u3066\u3053\u3068\u3067\u3001\u6700\u8fd1\u306fVisualStudioCode\u3067\u4f5c\u696d\u3092\u3059\u308b\u3053\u3068\u3082\u591a\u3044\u306e\u3067\u3001\u3064\u3044\u3067\u3060\u304b\u3089PHP\u306e\u30c7\u30d0\u30c3\u30b0\u74b0\u5883\u3082\u4f5c\u3063\u3061\u3083 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":304,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"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":""},"categories":[10],"tags":[13,24],"class_list":["post-303","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech","tag-php","tag-vagrant"],"jetpack_featured_media_url":"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2016\/07\/30ba7b196ec6fed86ceb6edbdd492489_s.jpg","jetpack_shortlink":"https:\/\/wp.me\/p7Bq4F-4T","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/posts\/303","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/comments?post=303"}],"version-history":[{"count":0,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/posts\/303\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/media\/304"}],"wp:attachment":[{"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/media?parent=303"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/categories?post=303"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/tags?post=303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}