laravel - Dynamic mapping of all *.test domains for Homestead
问题描述
I'm using dnsmasq to access all *.test
domains locally. Now, I'd like to make Homestead box automatically point each domain to appropriate project. So if I go to foo.test
, it would open the project at /foo.test/public
directory. It's very convenient, as my machine doesn't need to be provisioned for new projects. I used to have it working by setting up in Homestead.yaml:
- map: '~^(?<project>.+\.test)$'
to: /home/vagrant/code/$project/public
However, a few versions ago it stopped working, giving the following error:
==> homestead-7: Running provisioner: shell...
homestead-7: Running: script: Creating Certificate: ~^(?.+.test)$
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
There is a commit that gives some hope: Self-Signed Wildcard Certificates.
Is it currently possible to set up Homestead like I'm trying to?
解决方案
推荐阅读
- node.js - 如何在 Google Cloud Storage 中为文件设置 X-Frame-Options
- javascript - 我的自动表单不会输出正确的值
- python - 如何将默认的 numpy 数组参数传递给 pybind11 中的函数?
- css - TestCafe:使用 testcafe 测试元素的边框属性
- python - 更新用于本地主机 127.0.0.1:5000 的烧瓶代码
- sequelize.js - Sequelize 生成出现错误的 sql 查询
- php - 您应该如何在 wordpress 页面模板中编辑全局变量?
- javascript - 当页面被 vue-router 重新打开时,不会调用 VueJS hookmount()
- html - 图像作为侧边栏?
- c# - Selenium 如何从敲除的数据绑定中获取隐藏文本,例如 data-bind="textInput: overridePassword, enable: false"