【问题标题】:How do I specify arrays in .env files for Ghost?如何在 .env 文件中为 Ghost 指定数组?
【发布时间】:2021-05-02 07:00:34
【问题描述】:

如何为 Ghost 的 .env 文件指定数组值?

我正在使用.env file to configure Ghost。根据How to define array/object in .env file?,我在.env 中设置了一行:

logging__transports="file,stdout"

但是 Ghost 失败了:

TypeError: this.transports.splice 不是函数

如何在 .env 文件中为 Ghost 指定数组?

【问题讨论】:

    标签: ghost-blog dotenv


    【解决方案1】:

    now supports this

    logging__transports='["file", "stdout"]'
    

    【讨论】:

      猜你喜欢
      • 2020-12-29
      • 1970-01-01
      • 2015-10-19
      • 1970-01-01
      • 1970-01-01
      • 2021-09-21
      • 1970-01-01
      • 1970-01-01
      • 2021-02-27
      相关资源
      最近更新 更多