Z
Z
Zhanibek Smagul2015-04-19 11:04:16
virtual box
Zhanibek Smagul, 2015-04-19 11:04:16

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

1 answer(s)
S
Sergey Gladkovskiy, 2015-04-19
@SMGladkovskiy

Have you updated your config?
vagrant provision

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question