看来我的家园流浪者只生成一个网站,不能不生成多网站
我的Homestead.yaml是:
...
键:
- ~/.ssh/id_rsa
文件夹:
- map: ~/Code
to: /home/vagrant/Code
位点:
- map: homestead.treeline-lumen
to: /home/vagrant/Code/treeline-lumen/public/
位点:
- map: homestead.Laravel-5-Bootstrap-3-Starter-Site
to: /home/vagrant/Code/Laravel-5-Bootstrap-3-Starter-Site/public/
数据库:
- homestead
...
我的家园版本是:
➜~hometead--version Laravel Homestead版本2.2.1
当我进入vm ls时只有一个配置:
vagrant @ homestead:〜$ ls / etc / nginx / sites-enabled /
homestead.Laravel -5-引导-3-入门站点
我有
➜Warmteadgit :(主人)流浪汉摧毁
➜Warmteadgit :(主人)流浪汉
更改了Homestead.yaml config后
http://homestead.treeline-lumen:8000/和http://homestead.laravel-5-bootstrap-3-starter-site:8000/指向同一个项目。我希望http://homestead.treeline-lumen:8000/点正确的项目。似乎是Homestead没有在vm中生成第二个配置文件nginx的。
我如何解决这个问题,任何人都可以帮助我?
答案 0 :(得分:2)
位点:
- map: homestead.treeline-lumen
to: /home/vagrant/Code/treeline-lumen/public/
位点:
- map: homestead.Laravel-5-Bootstrap-3-Starter-Site
to: /home/vagrant/Code/Laravel-5-Bootstrap-3-Starter-Site/public/
应该是
sites:
- map: homestead.treeline-lumen
to: /home/vagrant/Code/treeline-lumen/public/
- map: homestead.Laravel-5-Bootstrap-3-Starter-Site
to: /home/vagrant/Code/Laravel-5-Bootstrap-3-Starter-Site/public/
并且可以通过
来重新配置,而不必破坏它vagrant up --provision