I was hoping someone may point me in the right direction. I have watched a few videos here about setting up Vagrant and Homestead and decided to give it a try. I was previously using MAMP. I am using a Mac running Yosemite and use Chrome.
Before watching the videos and setting up homestead and vagrant, I had set up my site with Laravel 4.2 ... ~/documents/webdev/mysite/html I could bring up the laravel page with MAMP on localhost:8888. After watching the homestead/vagrant videos, I installed the components. Some of the videos appear to contradict one another where adding to your /etc/hosts file.
Homestead and Vagrant seem to work fine. Homestead is located in ~/.homestead. There is a link in my ~.composer/vendor/bin/ to the homestead location. My path contains the .composer/vendor/bin. 'Which homestead' returns ~/.composer/vendor/bin/homestead. I can 'homestead up' and the only snag occurs when it is bringing up Vagrant. I get about 5 or 6 ' Warning: Connection timeout. Retrying...' before I get the ''Machine booted and ready!" notice. I can homestead ssh and log in just fine. For reference, my homestead.yaml file contains:
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
authorize: /Users/AREA_MAC/.ssh/id_rsa.pub
keys:
- /Users/AREA_MAC/.ssh/id_rsa
folders:
- map: ~/Documents/webdev
to: /home/vagrant
sites:
- map: igrainbin.app
to: /home/vagrant/mysite/html/public
databases:
- test
variables:
- key: APP_ENV
value: local
I changed my hosts file as shown below.
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
192.168.10.10 mysite.app
When I attempt to access the site (mysite.app) in Chrome, I get a 'not found' error. I have also trie the ip address to which it is mapped.
I hope I have given adequate information. Can someone help me out here? Thanks!