我刚刚为在 OSX 10.10 (Yosemite) 上的 VirtualBox 上运行的 Laravel 5 设置了 Homestead 2.0 vagrant 服务器,它的运行速度比 MAMP 慢很多。
我真的很想使用 Homestead,但是加载页面的 1-3 秒延迟变得非常烦人,但每个加载请求在 MAMP 上都是即时的。
我的设置是否遗漏了什么?
Homestead.yaml:
---
ip: "192.168.10.10"
memory: 2048
cpus: 2
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: /Users/jackbarham/Code
to: /home/vagrant/Code
sites:
- map: tasks.mac
to: /home/vagrant/Code/tasks/public
databases:
- homestead
variables:
- key: APP_ENV
value: local
主持人:
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
192.168.10.10 tasks.mac
127.0.0.1 tasks-mamp.mac # MAMP PRO - Do NOT remove this entry!