【发布时间】:2018-01-17 17:48:15
【问题描述】:
我目前正在关注有关设置 Homestead 2.0 的 Laracast 视频,但是当我尝试使用命令 ~/.homestead $ homestead up 时,我得到了这个:
/home/darren/.composer/vendor/laravel/homestead/scripts/homestead.rb:92:in `read': No such file or directory @ rb_sysopen - /home/darren/.ssh/id_rsa.pub (Errno::ENOENT)
from /home/darren/.composer/vendor/laravel/homestead/scripts/homestead.rb:92:in `block in configure'
from /usr/share/vagrant/plugins/kernel_v2/config/vm_provisioner.rb:72:in `add_config'
from /usr/share/vagrant/plugins/kernel_v2/config/vm.rb:321:in `provision'
from /home/darren/.composer/vendor/laravel/homestead/scripts/homestead.rb:90:in `configure'
from /home/darren/.composer/vendor/laravel/homestead/Vagrantfile:20:in `block in <top (required)>'
from /usr/lib/ruby/vendor_ruby/vagrant/config/v2/loader.rb:37:in `load'
from /usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:113:in `block (2 levels) in load'
from /usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:107:in `each'
from /usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:107:in `block in load'
from /usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:104:in `each'
from /usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:104:in `load'
from /usr/lib/ruby/vendor_ruby/vagrant/vagrantfile.rb:28:in `initialize'
from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:706:in `new'
from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:706:in `vagrantfile'
from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:452:in `host'
from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:179:in `block in action_runner'
from /usr/lib/ruby/vendor_ruby/vagrant/action/runner.rb:33:in `run'
from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:439:in `hook'
from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:688:in `unload'
from /usr/bin/vagrant:176:in `ensure in <main>'
from /usr/bin/vagrant:176:in `<main>'
【问题讨论】:
-
您可以发布您的
Homestead.yaml文件吗?这将有助于调试。自 2.0 以来,安装过程应该没有太大变化,但您可以运行vagrant up(从包含Vagrantfile的同一文件夹)而不是homestead up -
--- ip: "192.168.10.10" 内存: 2048 cpus: 1 provider: virtualbox 授权: ~/.ssh/id_rsa.pub 密钥: - ~/.ssh/id_rsa 文件夹: - map : ~/Projects 到:/home/vagrant/Projects 站点:- 映射:homestead.app 到:/home/vagrant/Projects/tester/public 数据库:- homestead 变量:- 键:APP_ENV 值:本地 # blackfire:# - id: foo # token: bar # client-id: foo # client-token: bar # ports: # - send: 93000 # to: 9300 # - send: 7777 # to: 777 # protocol: udp