Laravel homestead not mapping my code folder

前端 未结 3 923
刺人心
刺人心 2021-02-20 11:32

I am trying to get homestead to work after following the instructions here

I have Virtualbox 5.0.6 and Vagrant 1.7.4 on windows 8. The machine boots up fine(ish) the on

相关标签:
3条回答
  • 2021-02-20 11:45

    sstarlight was on the right track. It's a path name issue. I'm on windows 8 with homestead too and you need to use the forward slashes even in your windows paths.

    The below should do the trick!

    authorize: C:/Users/Khalid/.ssh/id_rsa.pub
    
    keys:
        - C:/Users/Khalid/.ssh/id_rsa
    
    folders:
        - map: D:/work
          to: /home/vagrant/Code
    
    sites:
        - map: homestead.app
          to: /home/vagrant/Code/Laravel/public
    

    I would add to this that you should run the provisioning as per the other answer after you make the change by bringing your homestead up with the --provision flag set.

    0 讨论(0)
  • 2021-02-20 11:55

    Make sure and re-verify that the path for the keys and authorize are correct and run vagrant up --provision to re-provision the homestead setup again

    0 讨论(0)
  • 2021-02-20 11:59

    Try change

     D:\work to D:/work/
    
    0 讨论(0)
提交回复
热议问题