添加插件时出现 YAML 语法错误

你好,
我正在尝试使用以下代码安装插件:

## 插件请放在此处
## 详见 https://meta.discourse.org/t/19157 了解详细信息
hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/JoeSey/reply-by-email-TL.git
          - git clone https://github.com/procourse/procourse-static-pages.git
          - git clone https://github.com/sudaraka94/preventing-malicious-linking-plugin.git
          - git clone https://github.com/discourse/discourse-whos-online.git
          - git clone https://github.com/discourse/discourse-voting.git
          - git clone https://github.com/synweap15/discourse-voice-record.git
          - git clone https://github.com/zh99998/discourse-username-localization.git
          - git clone https://github.com/JafethDC/discourse-user-feedback.git
	  - git clone https://github.com/discourse/discourse-translator.git
          - git clone https://github.com/paviliondev/discourse-topic-previews.git
	  - git clone https://github.com/TomGrobbe/discourse-topic-limit.git
	  - git clone https://github.com/discourse/discourse-tooltips.git
	  - git clone https://github.com/vinkashq/discourse-timeline.git
	  - git clone https://github.com/davidtaylorhq/discourse-telegram-notifications.git
	  - git clone https://github.com/discourse/discourse-user-notes.git
	  - git clone https://github.com/discourse/discourse-solved.git
	  - git clone https://github.com/discourse/discourse-chat-integration.git
	  - git clone https://github.com/discourse/discourse-sitemap.git
          - git clone https://github.com/bolariin/discourse-response-bot.git
          - git clone https://github.com/paviliondev/discourse-ratings.git
          - git clone https://github.com/paviliondev/discourse-quick-messages.git
          - git clone https://github.com/paviliondev/discourse-question-answer.git
          - git clone https://github.com/discourse/discourse-push-notifications.git
          - git clone https://github.com/gnunicorn/discourse-plugin-profile-notes.git
          - git clone https://github.com/pmusaraj/discourse-onesignal.git
          - git clone https://github.com/discourse/discourse-policy.git
          - git clone https://github.com/angusmcleod/discourse-moderator-extension.git
          - git clone https://github.com/xfalcox/discourse-backups-to-dropbox.git
          - git clone https://github.com/discourse/discourse-affiliate.git
          - git clone https://github.com/discourse/discourse-akismet.git
          - git clone https://github.com/saiqulhaq/discourse-admin-statistics-digest.git
          - git clone https://github.com/discourse/discourse-adplugin.git
          - git clone https://github.com/communiteq/discourse-adsense.git

不确定为何会出现以下应用错误:
(<unknown>): found a tab character that violate indentation while scanning a plain scalar at line 93 column 13 -e LANG=en_US.UTF-8 YAML 语法错误。请检查您的 containers/*.yml 配置文件。

这很可能是因为你使用了制表符而不是空格,导致缩进不正确。

我的建议是删除 app.yml,然后重新运行 discourse-setup

接着,复制并粘贴第一行插件配置,编辑时移除 GitHub 地址,并粘贴新的地址。

虽然你没问,但几乎可以肯定,安装所有这些插件并不是一个好主意。