宅基地的多个文件夹不同步

时间:2015-03-10 15:59:42

标签: laravel vagrant vagrantfile homestead

我的第一个宅基地项目顺利进行,这是homstead.yaml的核心部分

folders:
    - map: C:\dev\bitbucket
      to: /home/vagrant/bb

sites:
    - map: project.dev
      to: /home/vagrant/bb/example/project/public   

现在我想在混音中添加一个不同的文件夹,所以我将yaml扩展为

folders:
    - map: C:\dev\bitbucket
      to: /home/vagrant/bb
    - map: C:\dev\github
      to: /home/vagrant/gh

sites:
    - map: project.dev
      to: /home/vagrant/bb/example/project/public    
    - map: another.dev
      to: /home/vagrant/gh/example/another/public

我运行homestead provision现在我可以访问another.dev但我收到了错误No input file specified.所以我运行了命令homestead sshcd /home/vagrant后跟{{1}我所看到的只是 bb 文件夹,而不是 gh 我发现多个地方提到多个网站的语法,但找不到提到多个文件夹的东西(虽然顾名思义文件夹是复数,所以我认为这应该是可能的)

我错过了什么?

2 个答案:

答案 0 :(得分:6)

有时家园没有正确配置,需要完全重启。虽然这不是理想的,但一种解决方法是使用homestead halt后跟homestead up来重新创建VM的配置过程。

答案 1 :(得分:0)

我的家园档案 你不允许将这个目录/ home / vagrant / Projects改为其他东西

folders:
     - map: ~/Projects
       to: /home/vagrant/Projects

sites:
   - map: aone.dev
     to: /home/vagrant/Projects/aone/public
   - map: booking.dev
     to: /home/vagrant/Projects/booking/public
   - map: nish.dev
     to: /home/vagrant/Projects/nish/public
   - map: shazdekocholo.dev
     to: /home/vagrant/Projects/shazdekocholo/public
   - map: hejab.dev
     to: /home/vagrant/Projects/hejab/public