Homestead Configuration Example
Folders:
folders configuration concept
map
keyword indicates project folder in the local machine.
to
keyword indicates project folder in the homestead vagrant machine.
Sites
Sites configuration indicates map virtual host to homestead vagrant machine folder.
map
has domain name that we want to attach to folder.
to
has the address of folder in homestead vagrant machine to which the domain points.
Folder Structure
Folder Structure in my computer that i mapped.
~/Code
├── laravel
│ ├── project1
│ └── testing
Configuration That I Use
---
ip: "192.168.10.10"
memory: 2048
cpus: 2
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: ~/code/laravel/project1/
to: /home/vagrant/code/project1/
- map: ~/code/laravel/testing/
to: /home/vagrant/code/testing/
sites:
- map: project1.test
to: /home/vagrant/code/project1/public
- map: testing.test
to: /home/vagrant/code/testing/public
- map: phpmyadmin.com
to: /home/vagrant/phpmyadmin
databases:
- homestead
features:
- mariadb: false
- ohmyzsh: false
- webdriver: false
# ports:
# - send: 50000
# to: 5000
# - send: 7777
# to: 777
# protocol: udp
---