ip: 192.168.10.11
memory: 2048
cpus: 2
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
-
map: /Users/pipiqiang/PhpstormProjects/xxxx
to: /home/vagrant/code
sites:
-
map: homestead.test
to: /home/vagrant/code/public
databases:
- homestead
features:
-
mariadb: false
-
ohmyzsh: false
-
webdriver: false
-
mongodb: true
name: xxxx
hostname: xxxx
mongodb: true
大家注意一下json裡面的 features:
要增加 mongodb: true
然後末尾也需要加上 mongodb: true
然後應用一下修改
vagrant reload --provision
本作品採用《CC 協議》,轉載必須註明作者和本文連結