18
Vagrant & Laravel Create Your Own HomeStead

TechTalk #69 : How to setup and run laravel apps inside vagrant

Embed Size (px)

Citation preview

Page 1: TechTalk #69 : How to setup and run laravel apps inside vagrant

Vagrant & LaravelCreate Your Own HomeStead

Page 2: TechTalk #69 : How to setup and run laravel apps inside vagrant

about me

twitter -> _hiraqfacebook -> hiraqlinkedin -> hiraq

Page 3: TechTalk #69 : How to setup and run laravel apps inside vagrant

Agenda

- Quote- History- Laravel Homestead- Vagrant ( Why, How)- Example- End

Page 4: TechTalk #69 : How to setup and run laravel apps inside vagrant

Quote

“ di tempatku jalan kok…” ~ ultimate answer lv 99

Page 5: TechTalk #69 : How to setup and run laravel apps inside vagrant

History

Alkisah di sebuah startup super canggih:

Engineer A -> WindowsEngineer B -> OS XEngineer C -> Linux (ubuntu, debian, Arch)

Page 6: TechTalk #69 : How to setup and run laravel apps inside vagrant

Problem 1

CTO says: “kita butuh memcache, redis & rabbitmq utk stack kita”

Engineer B & Engineer C : Yes sir!Engineer A (Windows) : WTF!!!!

Page 7: TechTalk #69 : How to setup and run laravel apps inside vagrant

Problem 2

Engineer A (Windows) : “yihaa...jalan smua!!”Engineer B & C : “jalan YOUR HEAD!! error permission denied gini smua kok jalan!!

Page 8: TechTalk #69 : How to setup and run laravel apps inside vagrant

the three musketeers

“ tous pour un, un pour tous ““ all for one, one for all”

Page 9: TechTalk #69 : How to setup and run laravel apps inside vagrant

Solusi

“Sebuah environment yang bisa dibuat satu kali dan dishare, agar bisa dipakai oleh banyak orang”

Page 10: TechTalk #69 : How to setup and run laravel apps inside vagrant

Laravel Homestead

Laravel Homestead is an official, pre-packaged Vagrant "box" that provides you a wonderful development

environment without requiring you to install PHP, HHVM, a web server, and any other server software on your local

machine.

Page 11: TechTalk #69 : How to setup and run laravel apps inside vagrant

Homestead

“combination between vagrant, laravel, and many stacks..batteries included”

build once, use everywhere by everyone

Page 12: TechTalk #69 : How to setup and run laravel apps inside vagrant

Vagrant

“Create and configure lightweight, reproducible, and portable development

environments.”

Page 13: TechTalk #69 : How to setup and run laravel apps inside vagrant

Vagrant - Why

“Vagrant will isolate dependencies and their configuration within a single disposable, consistent environment, without

sacrificing any of the tools you're used to working with (editors, browsers, debuggers, etc.).”

Page 14: TechTalk #69 : How to setup and run laravel apps inside vagrant

Tanpa Vagrant

Page 15: TechTalk #69 : How to setup and run laravel apps inside vagrant

Use Vagrant

Page 16: TechTalk #69 : How to setup and run laravel apps inside vagrant

Vagrant - How

- Vagrant - Virtualbox- Base Box (Base Image - Empty OS)- Project Box- Port Forwarding- Share Folder- Auto rsync

Page 17: TechTalk #69 : How to setup and run laravel apps inside vagrant

Example

Page 18: TechTalk #69 : How to setup and run laravel apps inside vagrant

End

“It's all talk until the code runs.  — Ward Cunningham”