Homestead配置文件Homestead.yaml
提供了将域映射到文件夹的方法,如下所示:
sites:
- map: project.dev
to: /home/vagrant/www/project.dev/public
- map: some-other.dev
to: /home/vagrant/www/some-other.dev/public
# etc.
有没有办法自动化这个过程并将所有.dev域映射到文件夹,像这样?
/home/vagrant/www/{domain}/public
答案 0 :(得分:1)
旧线程,但你可以这样做
sites:
- map: '~^(?<project>.+)\.dev$'
to: /home/vagrant/Development/\$project/public