'homestead up' 安装期间抛出错误(Shell provisioner `args`)
'homestead up' throwing error (Shell provisioner `args`) during installation
当我 运行 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
尝试在您的 Homestead.yaml 配置中更改此设置
databases:
- name: homestead
至
databases:
- homestead
然后再次尝试运行宅基地。
还要确保 Homestead.yaml 配置中的路径正确
当我 运行 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
尝试在您的 Homestead.yaml 配置中更改此设置
databases:
- name: homestead
至
databases:
- homestead
然后再次尝试运行宅基地。 还要确保 Homestead.yaml 配置中的路径正确