热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

.envwithquotedvalueskeepsthequoteswhenDEFINE'ing.

Submitafeaturerequestorbugreport[X]Ivereadtheguidelines


Submit a feature request or bug report


  • [X] I've read the guidelines for Contributing to Roots Projects

  • [ ] This is a feature request

  • [X] This is a bug report

  • [ ] This request isn't a duplicate of an existing issue

  • [X] I've read the docs and followed them (if applicable)

Replace any

1
X

with your information.

What is the current behavior?

I just did a fresh setup of the latest trellis + bedrock.

If the .env file has quoted values, eg:

1
2
3
DB_NAME='database_name'

DB_PASSWORD='example_dbpassword'

DB_USER='database_user'

Those values are defined in WordPress WITH the single quotes which is causing WordPress to fail to load.

The .env is generated by trellis/ansible with the single quotes, so I'm guessing the issue is with Bedrock's config loading stuff.

What is the expected or desired behavior?

The .env values are DEFINE'd without quotes.

Bug report

Please provide steps to reproduce, including full log output:

Literally all I did to reproduce:

  • Clone trellis

  • Clone bedrock

  • Set the domain/site names in the development group_vars

  • Vagrant up

Please describe your local environment:

Bedrock version: cfb68e1

WordPress version: 5.0.3

PHP version: 7.3

OS: Ubuntu 18.0something

Where did the bug happen? Development or remote servers?

Local development image

该提问来源于开源项目:roots/bedrock

not sure why i can't re-produce, but the dependency has been bumped: #417


推荐阅读
author-avatar
小妞丁林林
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有