Homestead.yaml *Shell provisioner `args` 必须是字符串或数组

Homestead.yaml *Shell provisioner `args` must be a string or an array

我正在编辑我的 homestead.yaml 文件,我确定缩进是正确的——但是我收到以下错误:

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.
* 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: ~/Sites
       to: /home/vagrant/Sites

sites: 
     - map: scheduleify.dev
       to: /home/vagrant/Sites/scheduleify/public

     - map: phpmyadmin.dev
       to: /home/vagrant/Sites/phpmyadmin

     - map: articles.dev
       to: /home/vagrant/Sites/learning-laravel5    

databases:
     - scheduleify

variables:
    - key: APP_ENV
  - value: local

对文件有什么问题有什么想法吗?

最后一行缩进不正确。确保它看起来像

variables:
    - key: APP_ENV
      value: local

还要检查主机上的所有路径是否都存在。

我遇到了类似的问题,但原因略有不同:

variables:
    - key: ON_HOMESTEAD
      value: true  # Error

true 无效,应为 1

variables:
    - key: ON_HOMESTEAD
      value: 1