laravel homestead the host path of shared folder missing error on windows 7

后端 未结 3 1856
野趣味
野趣味 2021-02-07 14:38

I am trying to set up laravel homestead on my windows 7 machine . I installed vagrant and virtualbox. Also the git bash shell.

did

vagrant box add larave         


        
相关标签:
3条回答
  • 2021-02-07 15:28

    The error is simple. It's telling you

    The host path of the shared folder is missing: /e/Projects/Code/apache/laravel
    

    Your shared folder is missing. According to your question. You are using window. So, window shouldn't work like

    cd /e/Projects/Code/apache/laravel
    

    Should be like YourPartitionName:/Yourdirectory.

    Example:

    folders:
        - map: E:/Projects/Code/apache/laravel
          to: /home/vagrant/Projects
    
    0 讨论(0)
  • 2021-02-07 15:31

    The local directory is missing. Just type mkdir followed by the missing shared folder

    eg. mkdir /e/Projects/Code/apache/laravel

    0 讨论(0)
  • 2021-02-07 15:39

    Exemple: in terminal

    cd ~/.homestead
    subl Homestead.yaml 
    
    ---
    ip: "192.168.10.10"
    memory: 2048
    cpus: 1
    provider: virtualbox
    
    authorize: ~/.ssh/id_rsa.pub
    
    keys:
        - ~/.ssh/id_rsa
    
    folders:
        - map: /media/Arquivos/www/vagrant/Code
          to: /media/Arquivos/www/vagrant/Code
    
    sites:
        - map: homestead.app
          to: /media/Arquivos/www/vagrant/Laravel
    
    databases:
        - homestead
    
    variables:
        - key: APP_ENV
          value: local
    
    # blackfire:
    #     - id: foo
    #       token: bar
    
    0 讨论(0)
提交回复
热议问题