0
我试图让Laravel运行在运行优胜美地的Imac上的虚拟机上。我已经在我的Macbook上设置了虚拟机,但出于某种原因,我无法让虚拟机在我的Imac上运行。我相信我所有的目录路径都是正确的,但是当我进入虚拟机时,没有任何一个目录显示出来。我相信这是与我的目录路径有关,但我让它们与我的Macbook完全一样,它似乎仍然无法工作。当我运行“vagrant up”时,我也会得到这两个错误,但是从Ive研究的结果来看,这不应该成为问题。让Laravel在imac上的虚拟机上运行
/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
hosts文件
##
# 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
'folders: - map:/ Users/username/laravel to:/ home/vagrant/Code' 也许你应该ch愤怒,以你自己的用户名。 –
@AmarSyla我设置为我的用户名,我只是使用用户名作为一般的占位符。 – Tyler