Ren*_*enz 6 configure vagrant laravel
我按照如何安装Laravel,但毕竟当我进入"vagrant up"时我得到这些错误:
C:/Users/Renz/code/Homestead/scripts/homestead.rb:63:在
configure': undefined m ethod每个'for nil:NilClass(NoMethodError)来自C:/ Users/Renz/code/Homestead/Vagrantfile:9:in call'fromblock in <top (requi red)>' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/c onfig/v2/loader.rb:37:inC :load' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/c onfig/loader.rb:103:in/ HashiCorp/Vagrant/embedded/gems/ gems/vagrant-1.6.5/lib/vagrant/c onfig/v2/loader.rb:37:in block(2 level)in load'from C:/ HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/c onfig/loader.rb:97:in ineach' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/c onfig/loader.rb:97:inblock in load'from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/ lib/vagrant/c onfig/loader.rb:94:ineach' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/c onfig/loader.rb:94:inload'from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/v agrantfile.rb:28:ininitialize' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/e nvironment.rb:614:innew'来自C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/e nvironment.rb:614:在vagrantfile' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/e nvironment.rb:399:in主机'来自C:/ HashiCorp/Vagrant/embedded/gems/gems/vagrant- 1.6.5/lib/vagrant/e nvironment.rb:198:block in action_runner' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/a ction/runner.rb:33:in来自C的电话:/ HashiCorp/Vagrant/embedded/gems/gems /vagrant-1.6.5/lib/vagrant/ a ction/runner.rb:33 :run' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/e nvironment.rb:386:in来自C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/e nvironment.rb:596:unload' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/bin/vagrant:1 77:in确保在'来自C:/ HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/bin/vagrant:1 77:in''
我尝试多次重新安装,但仍然得到相同的错误.
请帮忙,我现在真的需要解决这个问题.欣赏它,谢谢.
Jon*_*roy 18
您需要在Homestead.yaml中添加一个数据库:
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: ~/Code/testprogram
to: /home/vagrant/testprogram
sites:
- map: test.app
to: /home/vagrant/test/public
databases:
- name: testprogram
variables:
- key: APP_ENV
value: local
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8259 次 |
| 最近记录: |