安装过程中'homestead up'抛出错误(Shell provisioner`args`)

时间:2015-03-18 07:07:25

标签: php laravel installation vagrant homestead

运行homestead up后跟随laravel installation guide后,收到错误消息:

$ homestead up
Bringing machine 'default' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:

shell provisioner:
* Shell provisioner `args` must be a string or array.
* Shell provisioner `args` must be a string or array.

我的Homestead.yaml文件配置如下:

---
ip: "192.168.10.10"
memory: 2048
cpus: 1

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: ~/Developer/PHP
      to: /home/vagrant/php

sites:
    - map: rmm.app
      to: /home/vagrant/php/rmm/public
      hhvm: true

databases:
    - name: homestead

variables:
    - key: APP_ENV
      value: local

1 个答案:

答案 0 :(得分:2)

尝试在Homestead.yaml配置中更改此内容

 databases: 
   - name: homestead 

databases: 
   - homestead

然后尝试再次运行宅基地。 还要确保您在Homestead.yaml配置中的路径正确

相关问题