LARAVEL错误-提供无业游民之后的Hashicorp/嵌入式错误 [英] LARAVEL ERRORS - Hashicorp/embedded error after vagrant provision

查看:172
本文介绍了LARAVEL错误-提供无业游民之后的Hashicorp/嵌入式错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了Laravel/Homestead和vagrant. vagrant upvagrant ssh命令均已成功实现,但是当我创建一个项目并执行vagrant provision时,vagrant无法再使用.下面是provision之后收到的错误的示例.

I installed Laravel/Homestead and vagrant. Both vagrant up and vagrant ssh commands have been successfully implemented but when I create a project and do vagrant provision, vagrant doesn't work again. Below is an example of the error received after provision.

错误屏幕截图

我已经重新安装了几次,但总是收到相同的错误.

I have reinstalled several times but always get the same error.

推荐答案

我已经工作了大约1个星期,我想与您分享使我取得成果的解决方案. 我注意到该解析错误是由于homestead.yaml文件中的选项卡引起的,当我再次复制homestead.yaml文件时,此错误已得到解决.

I've been working for about 1 week and I want to share with you the solution that got me a result. This parse error, which I noticed was due to a tab in the homestead.yaml file, was fixed when I copied the homestead.yaml file again.

ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: ~/Projects_Laravel
      to: /home/vagrant/Projects_Laravel

sites:
    - map: homestead.test
      to: /home/vagrant/Projects_Laravel/laravel/public

databases:
    - homestead

features:
    - mariadb: false
    - ohmyzsh: false
    - webdriver: false

# ports:
#     - send: 50000
#       to: 5000
#     - send: 7777
#       to: 777
#       protocol: udp

这是我的homestead.yaml 您可以通过复制解决方案并编辑自己的文件名来获得解决方案.祝你好运.

this is my homestead.yaml You can get the solution by copying it and editing your own file names. good luck.

这篇关于LARAVEL错误-提供无业游民之后的Hashicorp/嵌入式错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆