4

我的第一个宅基地项目顺利进行,这是 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然后ls我看到的只是bb文件夹而不是gh 我找到了多个提到多个站点语法的地方,但找不到提到多个文件夹的东西(虽然顾名思义文件夹是复数,所以我认为这应该是可能的)

我错过了什么?

4

2 回答 2

9

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

于 2015-03-10T17:44:44.640 回答
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
于 2015-03-10T17:13:52.543 回答