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

Vagrant + CakePHP + TDD ワークショップ #phpmatsuri

9b69fbdeb0713def44a8731091ce5885?s=47 Yusuke Ando
July 14, 2013
220

Vagrant + CakePHP + TDD ワークショップ #phpmatsuri

9b69fbdeb0713def44a8731091ce5885?s=128

Yusuke Ando

July 14, 2013
Tweet

Transcript

  1. 7BHSBOU $BLF1)1 5%% ϫʔΫγϣοϓ !ZBOEP

  2. ZBOEP $BOEZ$BOFQIQ ʮ࠙਌ձϐβൃ஫ΞϓϦʯ

  3. HJUIVCDPOZBOEPEDBOEZDBOF

  4. ຊ೔ͷ໨ඪ 7BHSBOUͰ$BLF1)1ͷ؀ڥΛߏங $BOEZ$BOFͷςετεΠʔτΛ࣮ߦ ςετέʔεΛ௥Ճͷ࢓ํͷ֬ೝ ϓϧϦΫΤετ

  5. ࡐྉGSPN64# 7JSUVBM#PY7BHSBOU DBOEZDBOFCPY DBOEZDBOFNBTUFS[JQPSHJUDMPOF 7BHSBOUpMFΛಉࠝ͠·ͨ͠ʂ

  6. ४උ 7JSUVBM#PYΛΠϯετʔϧ 7BHSBOUΛΠϯετʔϧ DBOEZDBOFCPYΛొ࿥ WBHSBOUVQΛϓϩδΣΫτ಺͔Β࣮ߦ vagrant box add candycane {path_to}candycane.box

  7. None
  8. None
  9. ςετͯ͠ΈΔ WBHSBOUVQ WBHSBOUTTI DEWBHSBOU@EBUBBQQ $POTPMFDBLFUFTUBQQ"MM

  10. None
  11. None
  12. Ϣχοτςετ͕ ࣮ߦͰ͖·ͨ͠ʂ

  13. 7BHSBOU $BLF1)1  5%%ϫʔΫγϣοϓ ׬

  14. ӕͰ͢

  15. 8FCΞΫηεʁ Vagrant.configure("2") do |config| config.vm.box = "candycane" # config.vm.box_url =

    "http://domain.com/path/to/above.box" src_dir = './' doc_root = '/vagrant_data/app/webroot' config.vm.network :for warded_port, guest: 80, host: 8080 config.vm.synced_folder src_dir, "/vagrant_data", :create => true, :owner=> 'vagrant', :group=>'www-data', :extra => 'dmode=775,fmode=775' end
  16. 7BHSBOUpMFมߋޙ WBHSBOUIBMUWBHSBOUVQ WBHSBOUSFMPBE ʹΞΫηε

  17. None
  18. ςετΛ଍͢ ࣗಈੜ੒͚ͨͩ͠ͷςετέʔε͕ૂ ͍໨ ςετίʔυΛ଍ͯ͠ɺςετ࣮ߦ ςετର৅ͷϝιουͷ࢓༷Λςετ ࢓༷͸ৗࣝͰ൑அʢ׼ʣ

  19. None
  20. None
  21. None
  22. ςετ ͱΓ͋͑ͣద౰ͳύϥϝʔλΛ౉͢ ࣮ࡍͷॲཧͷ෼ذΛ͏·͘Χόʔ ϗϫΠτϘοΫεతͳΞϓϩʔν ʢࣄޙʹςετΛॻ͍͍ͯΔͷͰʣ

  23. ςετ࣮ߦ

  24. ͍ͭॻ͘ʁ طଘίʔυͷόάΛݟ͚ͭͨ࣌ ޙํޓ׵ੑΛอ͍ͪͨ࣌ ࣮૷ର৅͕ෳࡶ͗ͯ͢ϒϥοΫϘοΫ εతʹ։ൃ͢Δඞཁ͕͋Δ࣌

  25. ςετΛॻ͍ͨΒ (JU)VCͰࣗ෼ͷϑΥʔΫ΁QVTI 5SBWJT$*͕ࣗಈͰςετͯ͘͠ΕΔ 0,ͳΒϓϧϦΫΤετ ίϯτϦϏϡʔλʔ΁ʂ

  26. ࣭໰ʁ