How do I connect to Homestead with multiple sites on a mobile device?

I am working on a website in Laravel that I am running on Homestead 0.2.0 and I want to try and connect to it using my phone and tablet so that I can test the website on those devices.

So, I have searched around trying to figure out how to do this. However, I cannot find articles that account for multiple sites.

I read somewhere that some routers do not allow WiFi-connected devices to connect to directly connected devices.

My sites are displayed like this:

sites:
    - map: app1.local
      to: /home/vagrant/projects/app1/public
    - map: app2.local
      to: /home/vagrant/projects/app2/public
    - map: app3.local
      to: /home/vagrant/projects/app3/public

      

How can I proceed?

+3


source to share


1 answer


Decision

Add an entry 192.168.10.10

for the app you want to test on your phone in the Homestead.yaml file and revisit the Homestead machine. Then download ipaddress:8000

to your phone

Description

Climb up to the last Homestead which displays * .app at 192.168.10.10

Then your file hosts

has the following entries:

192.168.10.10  app1.app app2.app app3.app

      

Let's say your developing computer is using IP 192.168.0.102

.

You can view your phone on



192.168.0.102:8000

      

for loading / testing app1.app

(alphabetical first)

To check app3.app

Modify the Homestead.yaml file from:

map: app3.app
 to: /home/vagrant/projects/app3/public

      

in

map: app3.app
 to: /home/vagrant/projects/app3/public
map: 192.168.10.10
 to: /home/vagrant/projects/app3/public

      

Just change the entry and version of the Homestead machine to test another app on your phone.

+5


source







All Articles