Support the ongoing development of Laravel.io →
Installation Configuration
Last updated 1 year ago.
0

Here is my YAML file :

ip: "192.168.10.10" 
memory: 2048
cpus: 1

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: /home/username/projects/
      to: /home/vagrant/projects/

sites:
    - map: resume.local
      to: /home/vagrant/projects/resume/public
    - map: larabook.local
      to: /home/vagrant/projects/larabook/public
    - map: testlaravel.local
      to: /home/vagrant/projects/testlaravel/public

variables:
    - key: APP_ENV
      value: local

Points to consider

  1. Under folders map your actual development folders to one which you want on Homestead ( lets call them virtual for now.) So this (/home/username/projects/) is path to my actual development folder which maps to virtual (/home/vagrant/projects/) when VM is created.

  2. Under sites , map your desired domain (resume.local) to the (virtual)folder on the VM. You can bind any no. of sites for now.

The only issue I face is , I cannot generate different tunneling urls for different sites on Homestead. You might want to check out Browser sync and FoodShow too.

Last updated 1 year ago.
0

I have the same problem under Windows 7

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.