我正在编辑我的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
有关文件错误的任何想法?
答案 0 :(得分:6)
最后一行未正确缩进。确保它看起来像
variables:
- key: APP_ENV
value: local
同时检查主机上的所有路径是否存在。
答案 1 :(得分:1)
我有类似的问题,但原因略有不同:
variables:
- key: ON_HOMESTEAD
value: true # Error
值true
无效,应为1
。
variables:
- key: ON_HOMESTEAD
value: 1