Laravel Homestead 开发环境搭建

2018-07-16  本文已影响15人  CaptainRoy

这是Mac系统的Homestead环境搭建
参考连接:
https://laravel-china.org/docs/laravel-development-environment/5.5/development-environment-macos/937#3e3008
https://www.jianshu.com/p/1cf3f7857e19

---
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 reload --provision
上一篇下一篇

猜你喜欢

热点阅读