KKongCai

1727 经验值

/Users/xizy/Homestead/scripts/homestead.rb:189:in `[]=': string not matched (IndexError)
    from /Users/xizy/Homestead/scripts/homestead.rb:189:in `block in configure'
    from /Users/xizy/Homestead/scripts/homestead.rb:180:in `each'
    from /Users/xizy/Homestead/scripts/homestead.rb:180:in `configure'
    from /Users/xizy/Homestead/Vagrantfile:35:in `block in <top (required)>'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.7/lib/vagrant/config/v2/loader.rb:37:in `load'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.7/lib/vagrant/config/loader.rb:125:in `block (2 levels) in load'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.7/lib/vagrant/config/loader.rb:119:in `each'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.7/lib/vagrant/config/loader.rb:119:in `block in load'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.7/lib/vagrant/config/loader.rb:116:in `each'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.7/lib/vagrant/config/loader.rb:116:in `load'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.7/lib/vagrant/vagrantfile.rb:28:in `initialize'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.7/lib/vagrant/environment.rb:810:in `new'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.7/lib/vagrant/environment.rb:810:in `vagrantfile'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.7/lib/vagrant/environment.rb:556:in `host'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.7/lib/vagrant/environment.rb:214:in `block in action_runner'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.7/lib/vagrant/action/runner.rb:33:in `run'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.7/lib/vagrant/environment.rb:543:in `hook'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.7/lib/vagrant/environment.rb:792:in `unload'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.7/bin/vagrant:141:in `ensure in <main>'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.7/bin/vagrant:141:in `<main>'

这是配置文件

ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: /Users/xizy/dev/Code
      to: /home/vagrant/Code
sites:
    - map: qhtpay.dev
      to: /home/vagrant/Code/qhtpay/public
    - map: adminqht.dev
      to: /home/vagrant/Code/admin_qhtpay/public
databases:
    - homestead

host文件

127.0.0.1       localhost
255.255.255.255 broadcasthost
::1             localhost


192.168.10.10   qhtpay.dev
192.168.10.10   adminqht.dev

访问 qhtpay.dev 和 adminqht.dev都是报错 无法连接到服务器