我刚刚在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!