Fakhruddin Abdi
Fakhruddin Abdi

Reputation: 906

Unable to find code folder in the vagrant home directory

I am trying to setup vagrant on my windows OS. I have watched some tutorial about that.
According to those tutorial, I should be able to map some folder from windows to the vagrant machine . I have configured homestead.yaml file with below info :

authorize: ~/.ssh/id_rsa.pub

keys:
- /Users/Fakhreddin/.ssh/id_rsa

folders:
- map: Users/Fakhreddin/code
  to: /home/vagrant/code

sites:
- map: homestead.app
  to: /home/vagrant/Code/Laravel/public

databases:
- homestead

variables:
- key: APP_ENV
  value: local

But when i check my vagrant home directory, there is no folder with code name
I have tried to create it manually, But it doesn't work.

What's wrong with it and how to solve?

Upvotes: 2

Views: 1594

Answers (3)

Mohamed Kamel
Mohamed Kamel

Reputation: 937

add this line to Vagrantfile

config.vm.synced_folder "Users/Fakhreddin/code", "/home/vagrant/code"

Upvotes: 1

KyleSean
KyleSean

Reputation: 1

check VagrantFile ,find this:

config.vm.synced_folder "D:/Project", "/home/vagrant/Code"

Upvotes: 0

Luciano Gonçalves
Luciano Gonçalves

Reputation: 277

The folder name is Code, with uppercase, the Linux machine is case sensitive.

Upvotes: 0

Related Questions