这是Mac系统的Homestead环境搭建
参考连接:
https://laravel-china.org/docs/laravel-development-environment/5.5/development-environment-macos/937#3e3008
https://www.jianshu.com/p/1cf3f7857e19
- 如果碰到版本不对,Homestead,yaml 中 添加 version : 0
- 以下是我的 Homestead.yaml 文件相关配置
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
version : 0
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
- ~/.ssh/id_rsa.pub
folders:
- map: ~/code/php/lkk
to: /home/vagrant/code
sites:
- map: learn.laravel.com
to: /home/vagrant/code/learn_laravel/public
- map: learn.lumen.com
to: /home/vagrant/code/learn-lumen/learnlumen/public
- map: api.local.lkker.com
to: /home/vagrant/code/api-server/public
- map: service.tags.local.com
to: /home/vagrant/code/service-tag/public
- map: admin.server.local.com
to: /home/vagrant/code/admin-server/public
- map: m.lkker.com
to: /home/vagrant/code/lkker-h5/public
- map: www.local.lkker.com
to: /home/vagrant/code/lkker-pc/public
- map: www.local.admin.com
to: /home/vagrant/code/lkker-admin/public
databases:
- homestead
# blackfire:
# - id: foo
# token: bar
# client-id: foo
# client-token: bar
# ports:
# - send: 50000
# to: 5000
# - send: 7777
# to: 777
# protocol: udp
- vagrant
vagrant reload --provision
网友评论