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

yapcasia8oji2016mid_LT_vagrant-up-up

ueshiy
July 03, 2016

 yapcasia8oji2016mid_LT_vagrant-up-up

やぱちー こと YAP(achimon)C::Asia Hachioji 2016 mid in Shinagawa でのLT資料です。

ueshiy

July 03, 2016
Tweet

More Decks by ueshiy

Other Decks in Technology

Transcript

  1. ֤؀ڥͷઃఆ͕ Vagrantfile ʹ·ͱ·Δ # Set hostname config.vm.hostname = "tekitouna.host.name" #

    Create a private network, which allows host-only access to the machine # using a specific IP. config.vm.network "private_network", ip: "XXX.XXX.XX.XX"
  2. ֤؀ڥͷઃఆ͕ Vagrantfile ʹ·ͱ·Δ # Set hostname config.vm.hostname = "tekitouna.host.name" #

    Create a private network, which allows host-only access to the machine # using a specific IP. config.vm.network "private_network", ip: "XXX.XXX.XX.XX" # Share an additional folder to the guest VM. config.vm.synced_folder "../host_PC", "/vagrant_no/tekitouna/directory"
  3. boxศར • VMͷத਎·Δͬͱ "box" ʹͰ͖Δ • ϓϩδΣΫτ΁ͷϝϯόʔ૿һ࣌ʹศར • طଘϝϯόʔ͕ࣗ෼ͷ؀ڥͷ box

    ࡞ͬͯ౉ͤ͹ɺ
 ड͚औͬͨਓ͸ͦͷ box Ͱ vagrant up ͢Δ͚ͩ • Vagrantfile ͸֤͓ࣗ޷ΈͰͲ͏ͧ • ద౰ͳ؀ڥΛ࡞Γ͍ͨ࣌ʹ΋ศར • web্Ͱ৭ʑͳ OS ͷ box ͕഑෍͞Ε͍ͯ·͢
  4. ŝŒŖŖŖ rsync ༷ŖŖŖ!! ✨ ಉظઃఆʹ rsync Φϓγϣϯ௥Ճ͢Δ͚ͩ config.vm.synced_folder "../host_PC", "/vagrant_no/dir",

    type: "rsync" ҎԼίϚϯυͰखಈಉظ(ϗετˠήετ) $ vagrant rsync ҎԼͩͱϗετଆͷϑΝΠϧʹߋ৽͕͋Δ౓ʹಉظͯ͘͠ΕΔ $ vagrant rsync-auto
  5. ŝŒŖŖŖ rsync ༷ŖŖŖ!? ಉظআ֎σΟϨΫτϦͷઃఆΛͯ͠ͳ͔͚ͬͨͩ ΞϓϦέʔγϣϯ͔Βͷ ϑΝΠϧΞοϓϩʔυઌ΍ɺ Ұ࣌ϑΝΠϧ͕ੜ੒͞ΕΔ σΟϨΫτϦ͸ ͪΌΜͱআ֎͠Α͏Ͷʂʘ(^o^)ʗ ήετଆͷҰ࣌ϑΝΠϧੜ੒ઌͷσΟϨΫτϦ಺༰͕

    ϗετϚγϯͷ಺༰Ͱ্ॻ͖͞Ε͍ͯͨɻ config.vm.synced_folder "../host_PC", "/vagrant_no/dir", type: "rsync", rsync__exclude: [".git/", ".idea/", "sites/default/files/",]
  6. ·ͱΊ • ૢ࡞ָ͕ • ؀ڥߏஙָ͕ • ࢀߟهࣄ΋๛෋ (ṆΕͨΒάάΖ͏) ਵ෼ؾܰʹVMཱͯΒΕΔΑ͏ʹͳͬͨʂ •

    σΟϨΫτϦಉظपลͰቕ·Δ͔΋͠Εͳ͍ • ϗετ㱻ήετؒͷૄ௨Ͱቕ·Δ͔΋͠Εͳ͍
  7. ͓·͚ PHPΧϯϑΝϨϯε८ྱத ͖͔͚ͬ 1. ڈ೥͔ΒษڧձʹࢀՃ͠͸͡Ίͨ 2. PHPΧϯϑΝϨϯε2015(౦ژ)ࢀՃ 3. ࡇΓָ͍͠ʂʂʂʌ(:3ůŢʌ)ůŢ 4.

    ࢼ͠ʹࡳຈ·Ͱԕ੐ͯ͠ΈͨΒϋϚͬͯ͠·͍શ੍೼༧ఆ 2016೥PHPΧϯϑΝϨϯε ࡳຈ(04/16), ෱Ԭ(05/21), ؔ੢(07/16), ౦ژ(11/03)
  8. ͓·͚ PHPΧϯϑΝϨϯε८ྱத ͖͔͚ͬ 1. ڈ೥͔ΒษڧձʹࢀՃ͠͸͡Ίͨ 2. PHPΧϯϑΝϨϯε2015(౦ژ)ࢀՃ 3. ࡇΓָ͍͠ʂʂʂʌ(:3ůŢʌ)ůŢ 4.

    ࢼ͠ʹࡳຈ·Ͱԕ੐ͯ͠ΈͨΒϋϚͬͯ͠·͍શ੍೼༧ఆ 2016೥PHPΧϯϑΝϨϯε ࡳຈ(04/16), ෱Ԭ(05/21), ؔ੢(07/16), ౦ژ(11/03) ࠶དྷिʂʂ
  9. ͓·͚ ΧϯϑΝϨϯεԕ੐ Կ͕ྑ͍ͷʁ • ͪΐͬͱཱྀͨ͠ߦɻߦͬͨ͜ͱແ͍౔஍Ͱ͋Ε͹ঘߋɻ • ֤஍ʹ஌Γ߹͍ɾإݟ஌Γ͕Ͱ͖Δ • ΞΠίϯ͔͠஌Βͳ͔ͬͨਓͱ΋௚઀ձ͑Δ •

    ࡇΓָ͍͠ʂʂʂʌ(:3ůŢʌ)ůŢ ࠙਌ձ࢝·͔ͬͯΒ͕ຊ൪ • ༗ஈऀἧ͍ɻ͍͍͚ͭͯͳ͍ϨϕϧͷτʔΫ΋͠͹͠͹ • Ͱ΋ϚαΧϦ͸ඈΜͰ͜ͳ͍ʢଟ෼