gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 17:33:59 24 4
gpt4 key购买 nike

我正在编辑我的 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

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

关于vagrant - Homestead.yaml *Shell provisioner `args` 必须是字符串或数组,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30601728/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com