Answer the question
In order to leave comments, you need to log in
How to add multiple domains to Homestead?
Installed homestead and laravel. Changed setting in Homestead.yaml:
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: C:/Users/zhanibek/.ssh/id_rsa.pub
keys:
- C:/Users/zhanibek /.ssh/id_rsa
folders:
- map: C:/OpenServer/domains
to: /home/vagrant/Code
sites:
- map: homestead.app
to: /home/vagrant/Code/homestead/public
- map: laravel.app
to: /home/vagrant/Code/laravel/public
databases:
- homestead
variables:
- key: APP_ENV
value: local
# blackfire:
# - id: foo
# token: bar
# client-id: foo
# client-token: bar
Host file added ip and site address:
192.168.10.10 homestead.app
192.168.10.10 laravel.app
But only the first homestead.app works
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question