我试图让 Laravel 在运行 Yosemite 的 Imac 上的虚拟机上运行。我已经在我的 Macbook 上设置了我的 VM,但由于某种原因,我无法让虚拟机在我的 Imac 上运行。我相信我的所有目录路径都是正确的,但是当我 ssh 进入 VM 时,我的目录都没有出现。我相信这与我的目录路径有关,但我让它们的路由与我在 Macbook 上的路由完全相同,但它似乎仍然不起作用。当我运行“vagrant up”时,我也会遇到这两个错误,但根据我的研究,这不应该是问题。
/opt/vagrant/bin/../embedded/gems/gems/vagrant-1.7.2/lib/vagrant/pre-rubygems.rb:31:
warning: Insecure world writable dir /Users/tylerfoulkes in PATH, mode 040777
/opt/vagrant/embedded/gems/gems/bundler-1.7.11/lib/bundler/runtime.rb:222: warning: Insecure world writable dir
/Users/tylerfoulkes in PATH, mode 040777
Homestead.yaml 文件
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: /Users/username/laravel
to: /home/vagrant/Code
sites:
- map: learn.app
to: /home/vagrant/Code/laravel/public
databases:
- homestead
variables:
- key: APP_ENV
value: local
# blackfire:
# - id: foo
# token: bar
主机文件
##
# 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
fe80::1%lo0 localhost
127.0.0.1 learn.app