Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Ultimate develop environment for CakePHP with Vagrant.

Ultimate develop environment for CakePHP with Vagrant.

9b69fbdeb0713def44a8731091ce5885?s=128

Yusuke Ando

August 31, 2013
Tweet

Transcript

  1. DBLFGFTU!ZBOEP 6MUJNBUF%FWFMPQNFOU &OWJSPONFOUGPS$BLF1)1 XJUI7BHSBOU

  2. !ZBOEP $BOEZ$BOFQIQ HJUIVCDPNZBOEPE

  3. BVUIPSJOH

  4. 1MBUGPSNBTB4FSWJDF BVUPNBUJPOGPS"84 "[VSF FUD QSPBDUJWFTVQQPSUGPSBQQMBZFS BMMPXTTTITVEP

  5. 4UBUFPG+BQBO $BLF1)1JTQSFUUZNBKPS "OOVBMIBDLBUIPOBOEDPOGFSFODF PG$BLF1)1CBTFE$.4QSPKFDU

  6. http://ameblo.jp/rb26/entry-11453375241.html Japan

  7. 1)1.BUTVSJ4BQQPSP

  8. 1)1$POGFSFODF

  9. BLJCBLFE

  10. #BTFS$.4

  11. /FU$PNNPOT W

  12. 6OJRVF #BTFS$.4JTEFTJHOFEGPSDPSQPSBUF XFCTJUF /FU$PNNPOTJTEFTJHOFEGPSTDIPPMT PSMPDBMHPWFSONFOUBOEESJWFOCZ /BUJPOBM*OTUJUVUFPG*OGPSNBUJDT

  13. 5PEBZ`TNFTTBHF 6TF7BHSBOU )BWF7BHSBOUpMF 6TF$PNQPTFS http://bit.ly/php-vagrant

  14. %FW&OWJSPONFOU ZPVOFFEJU UPPNVDIWBSJBUJPO 9".1 .".1 7JSUVBM#PY TZTUFN1)1 OFWFSTBNFXJUIQSPEVDUJPO

  15. *TTVFT OPU XPSLTGPSNF OPUXPSLPOQSPEVDUJPO DPOpHVSFNPSFBQQ EFWFMPQPOQSPEVDUJPO

  16. ZPVSCPYCFDPNFBTIFT

  17. 7BHSBOUJTJU

  18. 6TF7BHSBOU NBOBHFEFWFMPQNFOUFOWJSPONFOU SFRVJSF7JSUVBM#PY UFYUCBTFEDPOpHVSBUJPO KVTUAWBHSBOUVQAJOZPVSEJSFDUPSZ

  19. WBHSBOUVQ Vagrantfile VirtualBox Chef Solo Cookbook SFBE CPPU QSPWJTJPOJOH SFBEEFpOJUJPO

    LJDL
  20. (SFBU KVTUBpMF DBOCFNBOBHFEXJUI7$4 DBOVTFBOZ*%&PSFEJUPSZPVMPWF SFVTFDIFGDPPLCPPLPOQSPEVDUJPO WFSZIBOEZ FRVBMTUPQSPEDUJPO

  21. JOTUBMM do not install by `gem install vagrant`

  22. WBHSBOUCPY CBTFJNBHF IUUQXXXWBHSBOUCPYFT VTFFRVBMPTBOEBSDIJUFDUVSFBTQSPE WBHSBOUCPYBEE\UJUMF^\VSM^

  23. WBHSBOUJOJU HFOFSBUF7BHSBOUpMF JOTJEFQSPKFDUJTCFTU EPOPUDSFBUFPVUTJEFQSPKFDU http://bit.ly/php-vagrant

  24. Vagrant.configure("2") do |config| config.vm.box = "base" config.vm.box_url = "http://dom.com/ a.box"

    end
  25. WBHSBOUVQ CPPUNBDIJOFCBTFEPO7BHSBOUpMF DBOTTIJOUPAWBHSBOUTTIA XJUIPVUJQ MPHJOBOEQBTTXPSE UIJTJTKVTUBOJOTUBODFPGCBTFJNBHF

  26. WBHSBOUEFTUSPZ JGTPNFUIJOHXFOUXSPOH AEFTUSPZASFNPWFXPSLJOHDPQZPG7. DBOHFUOFXPOFXJUIAWBHSBOUVQA

  27. DPOpHWNQSPWJTJPO QSPWJTJPOJOHCPPUFECPY TVQQPSUTWBSJPVTUPPMT $IFG 1VQQFU $'&OHJOF 4IFMM "OTJCMF TQFDJGZQBUIUPZPVSDPPLCPPL

  28. config.vm.provision :chef_solo do |chef| chef.cookbooks_path = "../my-recipes/cookbooks" chef.add_recipe "mysql" end

  29. $IFG TFSWFSQSPWJTJPOJOHUPPM DPPLCPPLCBTF 'BDFCPPLVTFT$IFG IPUUSFOEJO+BQBO

  30. package “nginx” template “/etc/nginx/nginx.conf” do source “nginx.conf.erb” end service “nginx”

    do action :start end SFDJQF JOTUBMM DPQZDPOGJHGJMF TUBSUTFSWJDF
  31. DPPLCPPLXJMMHSPX BEENPSFEFpOJUJPOZPVOFFE BQQMZDPOUJOVPVTMZ TIBSFDPPLCPPLCPUIQSPEBOEEFW

  32. DPOpHWNTZODFE@GPMEFS NPVOUZPVSMPDBMpMFJOUP7. DIBOHFTXJMMCFSFqFDUJOTUBOUMZ OPNPSFGUQ TDQGPSDPSEJOHQIBTF

  33. .JTD DPOpHWNOFUXPSL TUBUJD*1 /"5 QPSUGPSXBSEJOH WCDVTUPNJ[F JODSFBTFNFNPSZTJ[F DQVDPSF QMVHJO NPSFVTFGVMGFBUVSFBOEWJSUVBMJ[BUJPO

  34. (PBM Vagrantfile Cookbook IaaS %FW&OW 1SPEVDUJPO 4ZOD%FWFOWBOE1SPEVDUJPOWJBDPPLCPPL

  35. Node Node GitHub engineyard.com Node &OHJOF:BSEXBZ DIFGTPMP Cookbook BQQMZ &OHJOF:BSENBOBHFDPPLCPPLT

    VTFSDBOBQQMZMBUFTUDPPLCPPLGSPNXFC DVTUPNSFDJQF
  36. GitHub workstation &OHJOF:BSE-PDBM Cookbook &OHJOF:BSE-PDBM (JWFUSBOTQBSFOU7.BT$MPVEJOTUBODF VM DIFGTPMP BQQMZ 7BHSBOU

    Node DIFGTPMP BQQMZ
  37. QIQGSJFOETDBOEZDBOFKQ

  38. QIQGSJFOET HJUIVCDPNZBOEPEQIQGSJFOET JOTQJSFECZSVCZGSJFOET EFWFMPQFEPO7BHSBOU SVOOJOHPO&OHJOF:BSE

  39. None
  40. OPSNBMDBLFBQQ MJC$BLF VQHSBEFDBOCZEPOFCZNBOVBMMZ VHMZSFQPTJUPSZ

  41. None
  42. None
  43. None
  44. None
  45. None
  46. $PNQPTFS DPNQPTFSKTPO JOTUBMMMJCSBSJFTBVUPNBUJDBMMZ EPO`UOFFEUPDPNNJUMJCSBSZ WFSZOJDF

  47. None
  48. $PNQPTFSSFBEZ

  49. DPNQPTFSKTPO

  50. TUFQT DPNQPTFSJOTUBMM DBLFCBLF HFOFSBUFBQQGPMEFSBOEpMFT

  51. NPEJGZ $",&@$03&@*/$-6%&@1"5) "QQCVJMEGPSQMVHJOTJGOFDFTTBSZ

  52. 5SZʁ 7BHSBOUpMFJTJODMVEFE HJUDMPOF WBHSBOUVQ IUUQ

  53. 5IBOLT