2014-11-01 4 views
3

저는 Laravel을 처음 사용하기 때문에 내 응용 프로그램 용 VM을 설정하려고합니다. 나는 문서를 잘 따르고 있으며 구성이 거의 끝났습니다. 나는 여기 붙어있다. Laravel 5에서 Homestead.yaml을 구성 할 때의 문제

나는 윈도우 8이 내 Homestead.yaml 파일은 다음과 같습니다 : 내가 cmd를에서 방랑을 실행할 때

authorize: E:/laravel_projects/Homestead/keys.pub 

keys: 
    - ~/.ssh/id_rsa 

folders: 
    - map: E:/laravel_projects 
     to: E:/vagrant/laravel_projects 

sites: 
    - map: learn.app 
     to: E:/vagrant/laravel_projects/myfirstapp/public 

variables: 
    - key: APP_ENV 
     value: local 

오류이 같은 것입니다.

E:/laravel_projects/Homestead/scripts/homestead.rb:26:in `read': No such file or directory - E:/laravel_projects/Homestead/keys.pub (Errno::ENOENT) 
    from E:/laravel_projects/Homestead/scripts/homestead.rb:26:in `block in configure' 
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/plugins/kernel_v2/config/vm_provisioner.rb:72:in `call' 
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/plugins/kernel_v2/config/vm_provisioner.rb:72:in `add_config' 
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/plugins/kernel_v2/config/vm.rb:285:in `provision' 
    from E:/laravel_projects/Homestead/scripts/homestead.rb:24:in `configure' 
    from E:/laravel_projects/Homestead/Vagrantfile:9:in `block in <top (required)>' 
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/config/v2/loader.rb:37:in `call' 
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/config/v2/loader.rb:37:in `load' 
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/config/loader.rb:103:in `block (2 levels) in load' 
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/config/loader.rb:97:in `each' 
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/config/loader.rb:97:in `block in load' 
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/config/loader.rb:94:in `each' 
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/config/loader.rb:94:in `load' 
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/vagrantfile.rb:28:in `initialize' 
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:614:in `new' 
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:614:in `vagrantfile' 
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:399:in `host' 
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:198:in `block in action_runner' 
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/action/runner.rb:33:in `call' 
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/action/runner.rb:33:in `run' 
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:386:in `hook' 
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:596:in `unload' 
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/bin/vagrant:177:in `ensure in <main>' 
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/bin/vagrant:177:in `<main>' 

내 프로젝트 경로는 E :/laravel_projects입니다.

folders: 
    - map: E:/laravel_projects 
     to: /home/vagrant/laravel_projects 
    - map: E:/laravel_projects/myfirstapp 
     to: /home/vagrant/laravel_projects/myfirstapp 

sites: 
    - map: learn.app 
     to: /home/vagrant/laravel_projects/myfirstapp/public 

당신의 리눅스 VM은 E 드라이브가없는 것

+0

콘솔 오류는 스크린 샷이 아닌 텍스트로 제공하는 것이 가장 좋으며 사람들이 읽기가 더 쉽습니다. 그걸 바꿀거야? – halfer

+1

좋아 ... 완료되었습니다! –

답변

1

이 같은이어야한다. 당신의 오류에서 첫 번째 줄에서

+0

그레이비 덕분에 ..하지만 많이 도움이되지 않습니다. 여전히 많은 오류가 발생합니다. 내가 누락 된 것을 모른다. 핵심 섹션에서 변경할 것이 있습니까 ?? –

+0

'vagrant reload --provision'을 시도해 보셨습니까? – Gravy

+1

또한 업데이트 된 답변을 참조하십시오. 폴더에'myfirstapp'을 포함시켜야합니다. 마지막으로,'keys.pub' 파일은 에러 메시지에 따라'E :/laravel_projects/Homestead/keys.pub'에 없습니다. – Gravy

1

봐 :

E:/laravel_projects/Homestead/scripts/homestead.rb:26:in `read': No such file or directory - E:/laravel_projects/Homestead/keys.pub (Errno::ENOENT)

은 분명히 키가 없습니다. SSH 키를 생성하고 올바른 경로를 지정했는지 확인하십시오.

또한, 귀하의 Homestead.yaml에 : 그것은 * nix에서 스크립트 경로 비록

keys: 
    - ~/.ssh/id_rsa 

이, 개인 키의 경로입니다. 이 값을 Windows 시스템에서 생성 된 개인 키의 경로로 설정해야합니다.

관련 문제