我的Yaml文件
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: ~/code
to: /home/vagrant/code
folders:
- map: /Users/{username}/code/phpMyAdmin
to: /home/vagrant/code/phpMyAdmin
sites:
- map: phpmyadmin.test
to: /home/vagrant/code/phpMyAdmin
sites:
- map: homestead.test
to: /home/vagrant/code/public
databases:
- homestead
主机文件是这个
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
192.168.10.10 homestead.test
127.0.0.1 phpmyadmin.test
我尝试了不同的方法,但仍然无法正常工作,并给我“未指定输入内容” 当我做vagrant ssh并转到'code'目录时,这些文件夹没有显示homestead文件夹,但它在外面可用。 帮我。谢谢