Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
ãã®ã¨ã³ããªã¼ã¯ãã¨ããµã¤ã Advent Calendar 2016 ã® 12/09 ã®è¨äºã§ãã ã¨ããµã¤ãã¨ãã¦ã¯åã®Advent Calendaråæ¦ã§ãã https://deployer.org/ PHPã§ã·ã¹ãã åããããããã¤ã·ã¹ãã ã§ãã ãtaskãããrecipeãã¨ãã£ãåæ©è½ãã¨ã®ç®¡çã Capistranoã®ããã«ãããã¤å ã§ã·ã³ããªãã¯ãªã³ã¯ãåãæ¿ããä»æ§ éçºãç¾å¨é²è¡ç³»ãä»å¾ã®ãã¼ã¸ã§ã³ã¢ãããæå¾ ããã PHPã«ããéçºãã¡ã¤ã³ã¨ãã¦ããç¾å ´ãªãã¡ã³ããã³ã¹æ§ã¨ããã¸ã§ã¯ãã¸ã®å°å ¥ã容æããç§æãæ··ãã£ã¦ãã¾ããä¸è¨ã®ãããªæ§è³ªãæã¤ãããã¤ã©ã¤ãã©ãªã§ãã ã¨ããµã¤ãã®ãµã¼ãã¹ã¯PHPã§ä½ããã¦ããã·ã¹ãã ãå¤ãã PHPããã¸ã§ã¯ããªãã°Deployerã®å°å ¥ã容æã§ããã ã¾ãåä¸è¨èªã§ã®å®è£ ã®ãããããããã¤ä»æ§ã®ç解çããã¼ã å ã§é«ãã¨æãã
æ°å¹´æãã¾ãã¦ããã§ã¨ããããã¾ããæ°¸äºã§ãã æ¬å¹´ããã«ã«ãããã³ãã¥ãã±ã¼ã·ã§ã³ãºæè¡ããã°ãå ±ã é å¼µã£ã¦ããããã¨æãã¾ãã®ã§ãå®ãããé¡ãè´ãã¾ãã ã¯ããã« ã«ã«ããã社å ã«ããããããã¤ãã¼ã«ã®ããã¡ã¯ãã¹ã¿ã³ãã¼ãã¯ãCapistranoã§ãã æ©è½çã«ã¯ç¹ã«ä¸æºã¯ãªãã®ã§ããããã¾ã«æã®è¾¼ãã ãã¨ããããã¨ããã¨é端ã«èºãã¦ãã¾ã£ãçµé¨ãä½åº¦ããããåºæ¥ãã°ã¢ããªã±ã¼ã·ã§ã³ã§å©ç¨ãã¦ããããã°ã©ãã³ã°è¨èªã§è¯ããã¼ã«ããªãããªã¨æã£ã¦ãã¾ããã ããã§ä»åã¯Deployerã試ãã¦ã¿ã¾ããã ä»åã®ã´ã¼ã« ã·ã³ãã«ãªPHPã®ããã¸ã§ã¯ãï¼Silexãã¼ã¹ï¼ãDeployerã§ãããã¤ãã CircleCIãå©ç¨ãã¦ã ç¹å®ãã©ã³ããæ´æ°ãããæã«èªåçã«ãããã¤ãã Deployerã«ã¤ã㦠Deployerã¯PHP製ã®ã¨ã¦ãã·ã³ãã«ãªãããã¤ãã¼ã«ã§ãã å ¬å¼ãµã¤ããè¦ã
ããã«ã¡ã¯ï¼ æ±äº¬ãªã®ã«å¨è¾ºã«ãã±ã¹ãããã1ã¤ããªãç°èã«ä½ãã§ãã¾ãã@fortkle ã§ãï¼ä¸ç°è°·å ¬åã®å¾æ©åå ã«å¼ã£è¶ãããã§ãï¼ã ãã¦ãã¿ãªããã¯PHPã¢ããªã±ã¼ã·ã§ã³ã®ãããã¤ãã¼ã«ã«ä½ã使ã£ã¦ããã§ããããã ä»åã³ããã㧠Deployer ã¨ããPHPã§æ¸ããããããã¤ãã¼ã«ãæ¡ç¨ããã®ã§ããããªãDeployerãªã®ãã¨ããçç±ã¨ãå®éã«ä½¿ã£ã¦ããããããã®è¨å®ãããã¤ãå ±æãããã¨æãã¾ãã â» Deployerã®ã¤ã³ã¹ãã¼ã«æ¹æ³ãåºæ¬çãªä½¿ãæ¹ãç¥ãããå ´åã¯æ¢ã«ã¤ã³ã¿ã¼ãããä¸ã«è¯ãè¨äºãããããããã®ã§ãã¡ããåèã«ãã¦ã¿ã¦ãã ããã ãããã¤ãã¼ã«ãã©ãããï¼ ä»åãæ°ããå°è¦æ¨¡PHPã¢ããªã±ã¼ã·ã§ã³ããããã¤ããæ©ä¼ããã£ãããä¸è¨ã®æ¡ä»¶ã§æ°ãããããã¤ãã¼ã«ã®é¸å®ãè¡ãã¾ããã PHPã®ã¢ããªã±ã¼ã·ã§ã³ãªã®ã§ ãããã¤ãã¼ã«ãPHP製ã®ãã® ãæ¡ç¨ããã
ä»ãéçºç°å¢ã¯ãã¼ã«ã«ã«ããã®ãä¸è¬çã§ããOSãåããããå ´åã§ãVMã使ãã°ç°¡åã«å®ç¾ã§ãã¾ããåé¡ã¯ã³ã¼ããæ¸ãçµãã£ãå¾ã®ãããã¤ã§ã¯ãªãã§ãããããã©ã®ãµã¼ãã«ã©ã®ã³ã¼ããåæ ããã©ããªã¿ã¹ã¯ãå®è¡ããã®ããã©ã¤ãã©ãªã®å¤æ´ãããã®ããªã©ãé©åã«ç®¡çããå¿ è¦ãããã¾ãã Ruby/Ruby on Railsçéã§ã¯Capistranoã¨ããã½ããã¦ã§ã¢ã使ããããã¨ãå¤ãã§ããCapistranoèªä½ã¯æ±ç¨çãªãããã¤ãã¼ã«ã§ãããPHPã§ããã°ãã¯ãPHP製ã®ãã¼ã«ã®æ¹ãåãããããã§ããããããã§ä»åã¯Deployerã¨ããPHP製ã®ãããã¤ãã¼ã«ãç´¹ä»ãã¾ãã Deployer â Deployment Tool for PHP Deployerã®ã»ããã¢ãã Deployerã¯ã¨ã¦ãç°¡åã«ã»ããã¢ããã§ãã¾ããæ¬ä½ããã¦ã³ãã¼ããã¦ããã¹ã®éã£ãã¨ããã«é ç½®ããã ãã§ãã
PHPã«ã³ãã¡ã¬ã³ã¹2015ã§ãããã¤ãã¼ã«ã®è©±ã¨LTãã¦ãã¾ãã Posted: 2015-10-04 23:11 | PHPå ¨è¬ PHPã«ã³ãã¡ã¬ã³ã¹2015ã§ããPHPãããã¤ãã¼ã«ã®ä¸çãã¨ããã¿ã¤ãã«ã§çºè¡¨ãã¦ãã¾ããã ãããã¤ãã¼ã«ã®ä½¿ãæ¹ããé¸ææ¹æ³ãªã©ã¯ç¹ã«è§¦ããã ããã¤ãã®ãããã¤ãã¼ã«ãä¾ã«ã ã¿ã¹ã¯å®è¡æ¹æ³ã®éããã並åã¸ã®ã¢ããã¼ãã ã³ãã³ãå ¥åããã¢ããªã±ã¼ã·ã§ã³èµ·åã¾ã§ã®å¦çãã¨ãã£ãå 容ã§ãã joind.in ããã«å ãã¦ãLaravelã¨ãã¹ãã¼ãé¤æèªæ¬ãã®ãµã¤ã³ä¼ãªã©ãè¡ãã¾ããï¼ ãã§ã«è³¼å ¥æ¸ã¿ã®æ¹ãå¤ããããããã®æ¹ã ã«å£°ãããã¦ããã ãã¾ããï¼ å½æ¥ã®æ§å (ã¬ãã¼ãã®ç»åããåããã¾ãã) æå¾ã®LTã«ãç»å£ããã¦ããã ãã ãPHPã¨å¤«å©¦çæ´»ãã¨ããã¿ã¤ãã«ã§æã家ã§ã®ããåããåèã«LTãã¾ããã (ã¹ã©ã¤ãã®å ¬éã¯ããã¾ããã»ã»ï¼)
æ¨æ¥ã®è¨äºãPHPããã¸ã§ã¯ããç°¡åã«ãããã¤ãããªãDeployerããè¦ãããæã£ããããã¯ã¦ãããããã®ã§ããã©ãã¼ã®è¨äºãæ¸ãã¦ããã¾ãã æ¨æ¥ã®ã¾ã¨ãã«æ¸ãã¾ãããã Deployerã¯é常ã«ã·ã³ãã«ãªãã¼ã«ã§å¿ è¦æä½éã®æ©è½ãä¸è¶³ãã¦ããããç¥ãã¾ããã ãªã®ã§ãèªåã®è¦æ±ã«è¶³ããªãæ©è½ã¨ããã®ãããã¶ãåºã¦ããã¨æãã¾ãã æ¨æºã®ã¯ã¼ã¯ããã¼ã§ã¯ããããã¤å ã®ãµã¼ãããgit cloneãã¦ã½ã¼ã¹ãåå¾ãã¦ãããã¤ãã¾ãã PHPããã¸ã§ã¯ããç°¡åã«ãããã¤ãããªãDeployerããè¦ã â A Day in Serenity (Reloaded) â PHP, FuelPHP, Linux or something 試ãã¦ã¿ããã©ããããã¤å ã®ãµã¼ãã¼å´ã§git cloneã³ãã³ãå®è¡ããããcloneã§ããè¨å®ããã¡ãã¡ããã®ãããã©ããªãgit cloneã¯ãããã¤ãµ
ä»æ¥ã¯PHP製ã®ãããã¤ãã¼ã«ã®ç´¹ä»ã§ãããããã¤ãã¼ã«ã¨ã¯Capistranoã¿ãããªãã¼ã«ã®ãã¨ã§ããã³ãã³ãä¸çºã§ãããã¤ãå®äºããããã«ãããã¼ã«ã§ãã PHP製ã®ãã¼ã«ãããã¤ãããã¾ãããDeployerã¯é常ã«ã·ã³ãã«ãªãã¼ã«ã§ãæè¿3.0ããªãªã¼ã¹ããã¾ããï¼ææ°çã¯3.0.4ï¼ã https://github.com/deployphp/deployer/releases/tag/v3.0.0 ããã ã¤ã³ã¹ãã¼ã«ãç°¡å å ¬å¼ãµã¤ã http://deployer.org/ ã¸ã¢ã¯ã»ã¹ããdeployer.pharããã¦ã³ãã¼ãããã ãã§ãã å ¬å¼ã«ã¯/usr/local/bin/depã«ã¤ã³ã¹ãã¼ã«ããã¨æ¸ãã¦ããã¾ãããããã¸ã§ã¯ãã®ãã©ã«ãã«çªã£è¾¼ãã§ãåé¡ããã¾ããã ç§ã¯ããã¸ã§ã¯ãã®ã«ã¼ãã«deployã¨ãããã©ã«ããä½æããããã«é¢é£ãããã¡ã¤ã«ãã¾ã¨ããã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}