码迷,mamicode.com
首页 > 数据库 > 详细

homestead 多站点,thinkphp5,数据库库相关

时间:2019-02-15 13:53:09      阅读:222      评论:0      收藏:0      [点我收藏+]

标签:home   tab   pre   ase   数据库链接   map   grant   data   app   

数据库链接 192.168.10.10 

用户名:homestead 
密码:secret

虚拟机账户密码 vagrant vagrant

多站点homestead.yaml配置

---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: E:/Code/wxdemo
      to: /home/vagrant/Code/wxdemo

sites:
    - map: demo.app
      to: /home/vagrant/Code/wxdemo/public

databases:
    - homestead

folders:
    - map: E:/Code/wx
      to: /home/vagrant/Code/wx

sites:
    - map: wx.app
      to: /home/vagrant/Code/wx/public

databases:
    - homestead
    
folders:
    - map: E:/Code/tp5
      to: /home/vagrant/Code/tp5

sites:
    - map: tp.app
      to: /home/vagrant/Code/tp5/public

databases:
    - homestead

 

homestead 多站点,thinkphp5,数据库库相关

标签:home   tab   pre   ase   数据库链接   map   grant   data   app   

原文地址:https://www.cnblogs.com/JANCHAN/p/10382993.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!