宅基地的多个文件夹不同步
Multiple folders for homestead not syncing
我的第一个宅基地项目顺利完成,这是 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 ssh
cd /home/vagrant
后跟 ls
,我看到的只是 bb 文件夹,而不是 gh
我找到了多个提到多个站点语法的地方,但找不到提到多个文件夹的东西(尽管顾名思义文件夹是复数,所以我认为这应该是可能的)
我错过了什么?
一点我的宅基地文件
您不能将此目录 /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
有时宅基地无法正确配置,需要完全重启。虽然这并不理想,但一种解决方法是使用 homestead halt
后跟 homestead up
来重新创建 VM 的配置过程。
我的第一个宅基地项目顺利完成,这是 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 ssh
cd /home/vagrant
后跟 ls
,我看到的只是 bb 文件夹,而不是 gh
我找到了多个提到多个站点语法的地方,但找不到提到多个文件夹的东西(尽管顾名思义文件夹是复数,所以我认为这应该是可能的)
我错过了什么?
一点我的宅基地文件 您不能将此目录 /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
有时宅基地无法正确配置,需要完全重启。虽然这并不理想,但一种解决方法是使用 homestead halt
后跟 homestead up
来重新创建 VM 的配置过程。