简体   繁体   中英

Laravel with Homestead

I new with virtual box and vagrant , Now I using Homestead image and every thing is run well but when i create my project named laravel on virtual machine it supposed that i see this new folder named laravel on my machine but i didn't get any thing on my machine.

NOTE: - I'm using ubuntu 14.04

This is my homestead.yaml

ip: "192.168.10.10"
memory: 2048
cpus: 1

authorize: ~/.ssh/id_rsa.pub

keys:

 - ~/.ssh/id_rsa

folders:

  - map: /var/projects/
    to: /home/vagrant/projects/

sites:

- map: homestead.app
  to: /home/vagrant/projects/laravel/public

variables:

- key: APP_ENV
  value: local    

thanks advance

This tutorial help me to fix the problem

  • you can see this video video

OR

  • Following this article is very helpful.

...when i create my project named laravel on virtual machine it supposed that i see this new folder named laravel on my machine...

I've run into this before. The root laravel project folder needs to be created on your real machine first. Then setup the site folder mapping above as you have done.

Then afterwards any further changes inside the virtual machine will replicate/sync both ways.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM