I can't recall but I think you have to run vagrant provision afterward.
Unable to connect to my new Laravel apps in my browser
I recently installed Homestead and Laravel and, because my project calls for 3 separate applications, I generated 3 Laravel projects in my ~/Code folder (aaa, bbb, ccc) and set my .homestead/homestead.yaml file to the following:
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: ~/Code
to: /home/vagrant/Code
sites:
- map: aaa.app
to: /home/vagrant/Code/aaa/public
- map: bbb.app
to: /home/vagrant/Code/bbb/public
- map: ccc.app
to: /home/vagrant/Code/ccc/public
databases:
- homestead
Then I set my /private/etc/hosts file to the following:
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
192.168.10.10 aaa.app
192.168.10.10 bbb.app
192.168.10.10 ccc.app
255.255.255.255 broadcasthost
::1 localhost
I then tried provisioning, suspending and "uping" Vagrant, but I can never get any of my apps to show up using:
http://aaa.app or http://aaa.app:8000 or aaa.app or aaa.app:8000
The browser either says:
No input file specified.
Sometimes says:
Safari cannot locate the server aaa.app
and oddly sometimes points to localhost/index.php.
Can anyone tell me what I am doing wrong?
Update: I finally solved the issue. My machine had to be booted up for some reason, and it is now working properly
Please or to participate in this conversation.