Homestead 2.0 multiple sites, all link to the same url

后端 未结 3 532
-上瘾入骨i
-上瘾入骨i 2021-02-01 22:44

Hee guys, little question: So i have setup the Homestead 2.0 and everything is working fine. I wanted to add another project in the same code directory but link it to another ur

3条回答
  •  迷失自我
    2021-02-01 23:39

    Try this

    folders:
        - map: ~/Code/Laravel
          to: /home/vagrant/Code/Laravel
    
        - map: ~/Code/Larabook
          to: /home/vagrant/Code/Larabook
    
    sites:
        - map: laravel.app
          to: /home/vagrant/Code/Laravel/public
        - map: larabook.app
          to: /home/vagrant/Code/Larabook/public
    
    databases:
        - homestead
        - larabook
    

    Note: look at the changes i have made to the folders section. find out more from https://www.easylaravelbook.com/blog/configuring-multiple-laravel-homestead-sites-and-databases/#top

    after run
        $ homestead halt
        $ homestead up --provision
    

提交回复
热议问题