尝试设置Homestead进行laravel开发。 laravel的每一步都是关于宅基地的,但我无法让我的项目链接运行。
我将此行添加到主机文件
192.168.10.10 shop.dev
这就是我的Homestead.yml文件的样子:
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: c:/users/lukas/.ssh/id_rsa.pub
keys:
- c:/users/lukas/.ssh/id_rsa
folders:
- map: e:/Projektai/Homestead
to: /home/vagrant/Code
sites:
- map: shop.dev
to: /home/vagrant/Code/Parduotuve/public
databases:
- homestead
# blackfire:
# - id: foo
# token: bar
# client-id: foo
# client-token: bar
# ports:
# - send: 50000
# to: 5000
# - send: 7777
# to: 777
# protocol: udp
起初我在运行VM时遇到了一些问题,但我设法让它运行起来。但是现在这根本不起作用。