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

E2勉強会 #2 Vagrant入門

E2勉強会 #2 Vagrant入門

Vagrantfileなどは下記

https://github.com/kaz29/vagrant-cakephp

Kaz Watanabe

January 29, 2014
Tweet

More Decks by Kaz Watanabe

Other Decks in Technology

Transcript

  1. Why use Vagrant? ✤ ։ൃ؀ڥΛ౷ҰͰ͖Δ! ✤ खૣ͘ɺ؆୯ʹߏங/ϓϩϏδϣχϯάͰ͖Δ! ✤ ઃఆͷมߋΛ؆୯ʹ഑෍Ͱ͖Δ! ✤

    ΠϝʔδΛ഑෍ͤͣɺઃఆϑΝΠϧͷ഑෍͚ͩͳͷͰܰྔ! ✤ σβΠφʔ͞ΜͰ΋Ͱ͖Δʂ
  2. Try Vagrant ✤ Virtual BoxͷΠϯετʔϧ ! ! https://www.virtualbox.org/wiki/Downloads! ✤ VagrantͷΠϯετʔϧ

    ! ! http://www.vagrantup.com/downloads.html! ✤ ઃఆϑΝΠϧͷμ΢ϯϩʔυ ! ! http://labo.decr.jp/public/e2study.tgz
  3. ओͳίϚϯυ ✤ vagrant up [—provision] - Ծ૝αʔόʔͷىಈ! ✤ vagrant halt

    - Ծ૝αʔόʔͷఀࢭ! ✤ vagrant destroy - Ծ૝αʔόʔͷ࡟আ! ✤ vagrant provision - ϓϩϏδϣχϯάΛ࣮ߦ! ✤ vagrant status - Ծ૝αʔόʔঢ়ଶͷදࣔ! ✤ vagrant ssh - Ծ૝αʔόʔʹϩάΠϯ
  4. Try Vagrant ✤ vagrant box add precise64 precise64.box *1! ✤

    e2study.tgz Λղౚ! ✤ vagrant up! ! ͠͹͠଴ͭ! ✤ http://localhost:8080/ ʹΞΫηε!!! *1 ௨ৗ͸ࣗಈͰ௥Ճ͞ΕΔͷͰෆཁɻDLʹ͕͔͔࣌ؒΔͨΊɻ
  5. ϛυϧ΢ΣΞ؀ڥ ✤ OS - Ubuntu 12.04! ✤ Apache - 2.2.22-1ubuntu1!

    ✤ prefork + mod_php5! ✤ PHP - 5.4.24-1~dotdeb.0! ✤ php5-cli! ✤ php-pear! ✤ php5-zendopcache! ✤ php5-xdebug! ✤ php5-curl! ✤ php5-pgsql! ✤ php-gd! ✤ PostgreSQL - 9.1.11! ✤ curl! ✤ git! ✤ vim! ✤ tree! ✤ language-pack-ja
  6. ΞϓϦέʔγϣϯ؀ڥ ✤ composerͰΠϯετʔϧ! ✤ CakePHP - 2.4.4! ✤ Migrations Plugin!

    ✤ DebugKit Plugin! ✤ ։ൃ༻σʔλϕʔε࡞੒! ✤ bake project! ✤ database.phpੜ੒
  7. ͓·͚ - ࠷ۙͷ։ൃํ๏ ✤ ϦϙδτϦʹVagrantfileΛೖΕΔ! ✤ ։ൃ؀ڥͷϨγϐΛௐ੔! ✤ ຊ൪/εςʔδϯά༻ͷϨγϐΛॻ͘(chef-solo/knife soloͰprovisioning)!

    ✤ CapistranoͰσϓϩΠεΫϦϓτΛॻ͘! ✤ ఏग़༻υΩϡϝϯτ/ϚχϡΞϧ͸MarkdownͰॻ͍ͯϦϙδτϦͰ ؅ཧ(ఏग़͸PDF)