{"id":3821,"date":"2019-06-13T04:19:52","date_gmt":"2019-06-12T19:19:52","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=3821"},"modified":"2019-06-13T04:19:52","modified_gmt":"2019-06-12T19:19:52","slug":"%e7%b0%a1%e5%8d%98%ef%bc%81laravel%e3%81%a7bitbucket%e3%81%ae%e3%82%a6%e3%82%a7%e3%83%96%e3%83%95%e3%83%83%e3%82%af%e3%82%92%e4%bd%bf%e3%81%86%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=3821","title":{"rendered":"\u7c21\u5358\uff01Laravel\u3067Bitbucket\u306e\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u3092\u4f7f\u3046\u65b9\u6cd5"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u524d\u56de\u306e\u8a18\u4e8b<a href=\"https:\/\/blog.capilano-fw.com\/?p=3796\">Deployer\u3067Laravel\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092Bitbucket\u304b\u3089\u30c7\u30d7\u30ed\u30a4\u3059\u308b<\/a>\u3067\u306f\u3001<a href=\"https:\/\/deployer.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">Deployer<\/a>\u3068\u3044\u3046\u81ea\u52d5\u30c7\u30d7\u30ed\u30a4\u30fb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f7f\u3046\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u3057\u3066\u305d\u306e\u4e2d\u3067\u3001<code>Bitubucket<\/code>\u306e\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u308b\u3068\u304d\u306b\u3042\u308b\u6a5f\u80fd\u304c\u3042\u308b\u3053\u3068\u306b\u6c17\u304c\u3064\u304d\u307e\u3057\u305f\u3002\u305d\u308c\u304c\u3001<\/p>\n<p><strong style=\"font-size: 35px;\">\u30a6\u30a7\u30d6\u30d5\u30c3\u30af<\/strong><\/p>\n<p>\u3067\u3059\u3002<\/p>\n<p>\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u3068\u3044\u3046\u306e\u306f\u3001\u4f8b\u3048\u3070<code>Bitbucket<\/code>\u3084<code>GitHub<\/code>\u304c\u66f4\u65b0\u3055\u308c\u305f\u77ac\u9593\u3001\u81ea\u52d5\u7684\u306b\u7279\u5b9a\u306eURL\u306b\u30a2\u30af\u30bb\u30b9\u3092\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u6a5f\u80fd\u3067\u3059\u3002\u3064\u307e\u308a\u3001\u3053\u308c\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u81ea\u52d5\u7684\u306b\u72ec\u81ea\u306e\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3057\u305f\u308a\u3068\u8272\u3005\u306a\u3053\u3068\u306b\u5229\u7528\u3067\u304d\u308b\u308f\u3051\u3067\u3059\u306d\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f<code>Laravel<\/code>\u3068<code>Bitbucket<\/code>\u306e\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u3092\u9023\u643a\u3055\u305b\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305c\u3072\u7686\u3055\u3093\u306e\u304a\u5f79\u306b\u7acb\u3066\u308b\u3068\u5b09\u3057\u3044\u3067\u3059\ud83d\ude0a\u2728<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3566 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_1.png\" alt=\"\" width=\"306\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_1.png 306w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_1-287x300.png 287w\" sizes=\"auto, (max-width: 306px) 100vw, 306px\" \/><\/p>\n<p>\u5b9f\u884c\u74b0\u5883\uff1a Laravel 5.8\u3001Bitbucket<\/p>\n<h1>Bitbucket\u306e\u74b0\u5883\u3092\u6574\u3048\u308b<\/h1>\n<p>\u307e\u305a\u306f\u3001<code>Bitbucket<\/code>\u3067\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u76ee\u7684\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8868\u793a\u3059\u308b\u3059\u308b\u3068\u3001\u30e1\u30cb\u30e5\u30fc\u306b<strong>\u300c\u8a2d\u5b9a\u300d<\/strong>\u3068\u3044\u3046\u30ea\u30f3\u30af\u304c\u8868\u793a\u3059\u308b\u306e\u3067\u3053\u308c\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3828\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_deploy_with_webhook_1.png\" alt=\"\" width=\"239\" height=\"445\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_deploy_with_webhook_1.png 239w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_deploy_with_webhook_1-161x300.png 161w\" sizes=\"auto, (max-width: 239px) 100vw, 239px\" \/><\/p>\n<p>\u6b21\u306b\u8a2d\u5b9a\u30e1\u30cb\u30e5\u30fc\u306e<code>Webhooks<\/code>\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3827\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_deploy_with_webhook_2.png\" alt=\"\" width=\"239\" height=\"419\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_deploy_with_webhook_2.png 239w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_deploy_with_webhook_2-171x300.png 171w\" sizes=\"auto, (max-width: 239px) 100vw, 239px\" \/><\/p>\n<p>\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8868\u793a\u306b\u306a\u308b\u306e\u3067\u3001<strong>\u300cAdd webhook\u300d<\/strong>\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3826\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_deploy_with_webhook_3.png\" alt=\"\" width=\"778\" height=\"163\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_deploy_with_webhook_3.png 778w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_deploy_with_webhook_3-300x63.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_deploy_with_webhook_3-768x161.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p>\u7d9a\u3044\u3066\u3001\u767b\u9332\u30d5\u30a9\u30fc\u30e0\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u8d64\u67a0\uff13\u30f6\u6240\u3092\u5165\u529b\u3057\u3066<strong>\u300cSave\u300d<\/strong>\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3829\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_deploy_with_webhook_4.png\" alt=\"\" width=\"560\" height=\"456\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_deploy_with_webhook_4.png 560w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_deploy_with_webhook_4-300x244.png 300w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/p>\n<ul>\n<li>Title\u3000\u30fb\u30fb\u30fb\u3000\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u306e\u540d\u524d\u3002\u597d\u304d\u306a\u540d\u524d\u3067OK\u3067\u3059\u3002<\/li>\n<li>URL\u3000\u30fb\u30fb\u30fb\u3000\u3053\u308c\u304b\u3089Laravel\u5074\u3067\u7528\u610f\u3059\u308b\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u3092\u53d7\u4fe1\u3059\u308bURL\u3002\u4eca\u56de\u306f\u3001<code>https:\/\/******.com\/webhook<\/code>\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>Request History\u3000\u30fb\u30fb\u30fb\u3000\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u3092\u5b9f\u884c\u3057\u305f\u7d50\u679c\u3092\u4fdd\u5b58\u3057\u3066\u304a\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u6b21\u306e\u9805\u76ee\u3067\u5fc5\u8981\u306b\u306a\u308b\u306e\u3067\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<\/ul>\n<p>\u203b \u3061\u306a\u307f\u306b\u9752\u67a0\u306e\u300c<code>Triggers<\/code>\u300d\u306f\u3044\u3064\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u3092\u5b9f\u884c\u3059\u308b\u304b\u3092\u9078\u3079\u307e\u3059\u3002\uff11\u3064\u76ee\u304c\u30d7\u30c3\u30b7\u30e5\u3057\u305f\u3068\u304d\u3060\u3051\u3067\u3001\uff12\u3064\u76ee\u306f\u7d30\u304b\u304f\u81ea\u5206\u3067\u9078\u3076\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u7d9a\u3044\u3066\u3001\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u306e<code>UUID<\/code>\u3092\u53d6\u5f97\u3059\u308b\u306e\u3067\u3059\u304c\u3001\u3069\u3046\u3084\u3089\u5b9f\u969b\u306b\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u3092\u9001\u4fe1\u3057\u306a\u3044\u3068<code>UUID<\/code>\u3092\u53d6\u5f97\u3067\u304d\u306a\u3044\u3088\u3046\u306a\u306e\u3067\u3001\u3053\u306e\u6642\u70b9\u3067\u4e00\u5ea6<code>git push<\/code>\u3057\u3066\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u3092\u8d77\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30d7\u30c3\u30b7\u30e5\u3057\u305f\u3089\u3001\u767b\u9332\u3057\u305f\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u306e<strong>\u300cView requests\u300d<\/strong>\u3068\u3044\u3046\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3832\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_deploy_with_webhook_7.png\" alt=\"\" width=\"790\" height=\"143\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_deploy_with_webhook_7.png 790w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_deploy_with_webhook_7-300x54.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_deploy_with_webhook_7-768x139.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p>\u305d\u3053\u306b\u306f\u3001\u9001\u4fe1\u3055\u308c\u305f\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u306e\u5185\u5bb9\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u3069\u308c\u3067\u3082\u3044\u3044\u306e\u3067<strong>\u300cView details\u300d<\/strong>\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3824\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_deploy_with_webhook_5.png\" alt=\"\" width=\"789\" height=\"117\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_deploy_with_webhook_5.png 789w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_deploy_with_webhook_5-300x44.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_deploy_with_webhook_5-768x114.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p>\u5185\u5bb9\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u3001<code>X-Hook-UUID<\/code>\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u6587\u5b57\u5217\u3092\u30b3\u30d4\u30fc\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002\u5f8c\u307b\u3069\u3001Laravel\u5185\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3823\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_deploy_with_webhook_6.png\" alt=\"\" width=\"650\" height=\"370\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_deploy_with_webhook_6.png 650w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_deploy_with_webhook_6-300x171.png 300w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><\/p>\n<h1>Laravel\u306b\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u306e\u30da\u30fc\u30b8\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001Laravel\u5074\u306b\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u304c\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u30da\u30fc\u30b8\u304c\u3064\u304f\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305a\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre><strong>php artisan make:controller WebhookController<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001<code>app\/Http\/Controllers\/WebhookController.php<\/code>\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u3001\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<pre>&lt;?php\r\n\r\nnamespace App\\Http\\Controllers;\r\n\r\nuse Illuminate\\Http\\Request;\r\nuse Symfony\\Component\\Process\\Process;\r\n\r\nclass WebhookController extends Controller\r\n{\r\n    <strong>public function webhook(Request $request) {<\/strong>\r\n\r\n<strong>        $x_hook_uuid = $request-&gt;header('X-Hook-UUID');<\/strong>\r\n\r\n<strong>        if($x_hook_uuid === '\uff08Bitbucket\u3067\u53d6\u5f97\u3057\u305f X-Hook-UUID\u306e\u6587\u5b57\u5217\uff09') {<\/strong>\r\n\r\n<strong>            \/\/ \u3053\u3053\u3067\u3084\u308a\u305f\u3044\u3053\u3068\u3092\u5b9f\u884c\u3059\u308b<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<p>\u203b \u3061\u306a\u307f\u306b<code>UUID<\/code>\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3044\u308b\u306e\u306f\u3001\u5ff5\u306e\u305f\u3081<code>Bitbuket<\/code>\u306e\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u4ee5\u5916\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u3092\u906e\u65ad\u3059\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>\u7d9a\u3044\u3066\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u4f5c\u6210\u3057\u305f\u306e\u3067\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3082\u4f5c\u6210\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<br \/>\n<code>routes\/web.php<\/code>\u3092\u958b\u3044\u3066\u4ee5\u4e0b\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre><strong>Route::post('\/webhook', 'WebhookController@webhook');<\/strong><\/pre>\n<p>\u306a\u304a\u3001\u5b9f\u306f\u3053\u308c\u3060\u3051\u3067\u306f\u3046\u307e\u304f\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u3092\u53d7\u4fe1\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u306a\u305c\u306a\u3089Laravel\u304c\u6a19\u6e96\u3067\u6709\u52b9\u306b\u3057\u3066\u3044\u308b<code>VerifyCsrfToken<\/code>\u304c\u30a8\u30e9\u30fc\u3092\u8fd4\u3057\u3066\u3057\u307e\u3046\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u306e\u5834\u5408\u3060\u3051\u306fCSRF\u30c1\u30a7\u30c3\u30af\u3092\u89e3\u9664\u3059\u308b\u3088\u3046\u8a2d\u5b9a\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><code>app\/Http\/Middleware\/VerifyCsrfToken.php<\/code>\u3092\u958b\u3044\u3066\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u306eURI\u3092<code>$except<\/code>\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre>&lt;?php\r\n\r\nnamespace App\\Http\\Middleware;\r\n\r\nuse Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken as Middleware;\r\n\r\nclass VerifyCsrfToken extends Middleware\r\n{\r\n    \/\/ \u7701\u7565\r\n\r\n    protected $except = [\r\n        <strong>'webhook'<\/strong>\r\n    ];\r\n}<\/pre>\n<p>\u3053\u308c\u3067\u8a2d\u5b9a\u306f\u5168\u3066\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<p>\u30c6\u30b9\u30c8\u3067<code>git push<\/code>\u3057\u3066\u307f\u3066\u4e0b\u306e\u3088\u3046\u306b<code>200<\/code>\u304c\u8fd4\u3063\u3066\u304d\u305f\u3089\u3046\u307e\u304f\u3044\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3836\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_deploy_with_webhook_8.png\" alt=\"\" width=\"578\" height=\"181\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_deploy_with_webhook_8.png 578w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_deploy_with_webhook_8-300x94.png 300w\" sizes=\"auto, (max-width: 578px) 100vw, 578px\" \/><\/p>\n<p>\u304a\u75b2\u308c\u69d8\u3067\u3057\u305f\uff01<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u5f53\u521d\u306f\u3053\u306e\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u3092\u4f7f\u3046\u3068<code>Deployer<\/code>\u3088\u308a\u3082\u7c21\u5358\u306b\u81ea\u52d5\u30c7\u30d7\u30ed\u30a4\u3092\u5b9f\u88c5\u3067\u304d\u308b\u3093\u3058\u3083\u306a\u3044\u304b\u3068\u601d\u3063\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u610f\u5916\u306b\u3082\u8907\u96d1\u306a\u3046\u3048\u306bPHP\u304b\u3089\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3055\u305b\u308b\u306a\u3069\u6a29\u9650\u7684\u306b\u3042\u307e\u308a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u3088\u308d\u3057\u304f\u306a\u3044\u5909\u66f4\u3092\u3057\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u306b\u6c17\u304c\u3064\u3044\u305f\u305f\u3081\u3001\u81ea\u52d5\u30c7\u30d7\u30ed\u30a4\u306b\u3064\u3044\u3066\u306f\u4e2d\u6b62\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u305f\u3060\u3001<code>git push<\/code>\u3057\u305f\u6642\u70b9\u3067\u4f55\u304b\u3092\u81ea\u52d5\u7684\u306b\u884c\u3046\u3068\u3044\u3046\u9700\u8981\u306f\u7d50\u69cb\u3042\u308a\u305d\u3046\u3067\u3059\u306e\u3067\u3001\u3053\u308c\u304b\u3089\u3082\u4f55\u306b\u4f7f\u3048\u308b\u304b\u3092\u63a2\u3063\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u7686\u3055\u3093\u3082\u305c\u3072\u958b\u767a\u306b\u81ea\u52d5\u5316\u3092\u53d6\u308a\u5165\u308c\u3066\u958b\u767a\u52b9\u7387\u3092\u3042\u3052\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u3066\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u3067\u306f\u3067\u306f\u301c\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2597 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/15-2.png\" alt=\"\" width=\"275\" height=\"350\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/15-2.png 275w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/15-2-236x300.png 236w\" sizes=\"auto, (max-width: 275px) 100vw, 275px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u524d\u56de\u306e\u8a18\u4e8bDeployer\u3067Laravel\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092Bitbucket\u304b\u3089\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u3067\u306f\u3001Deployer\u3068\u3044\u3046\u81ea\u52d5\u30c7\u30d7\u30ed\u30a4\u30fb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f7f &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=3821\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u7c21\u5358\uff01Laravel\u3067Bitbucket\u306e\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u3092\u4f7f\u3046\u65b9\u6cd5&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":3840,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[151],"class_list":["post-3821","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","tag-151"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/3821","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3821"}],"version-history":[{"count":8,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/3821\/revisions"}],"predecessor-version":[{"id":3839,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/3821\/revisions\/3839"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/3840"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3821"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3821"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3821"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}