I've been trying to sync a folder between my computer and a Homestead VM run using Vagrant. My guess is that Vagrant isn't reading my Homestead.yaml file as no change is reflected in the VM.
I've tried the following:
- Tried reloading, halting with provision after editing the file as mentioned here
- Checked for tabs and ensured that there are 2 spaces in my yaml file
- Rechecked the paths of the mounted folders. Tried variations like
/home/abhirath/Desktop/Laravel_Recipes
and~/Desktop/Laravel_Recipes
- Destroyed and recreated the VM
- Read random tutorials like this
- SSH'd into my VM. I don't see any folder there
- I changed the memory from 2048 to 512 in the
Homestead.yaml
file and checked the RAM in my VM usingsudo cat /proc/meminfo | grep MemTotal
and it still shows 2048 MB vagrant up
with debug mode enabled. I couldn't find anything relevant in the debug logs
contents of ~/.homestead
- after.sh
- aliases
- Homestead.yaml
- Vagrantfile
Homestead.yaml
---
ip: "192.168.10.10"
memory: 512
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: ~/Desktop/Laravel_Recipes
to: /home/vagrant/Laravel_Recipes
sites:
- map: recipes.dev
to: /home/vagrant/Laravel_Recipes/public
databases:
- homestead
# blackfire:
# - id: foo
# token: bar
# client-id: foo
# client-token: bar
# ports:
# - send: 50000
# to: 5000
# - send: 7777
# to: 777
# protocol: udp