AWS SDK gemのバージョンアップと新しいAWS Data Integrity Protectionsのため、再構築できません

しかし、Backblaze を使用しているサイトではこれを行う必要がありました。次のようなテンプレートを /root/aws-revert-template.yml に作成しました。

# This template reverts aws-sdk-s3 to a version that works with backblaze
# このテンプレートは、Backblaze で動作するバージョンに aws-sdk-s3 をロールバックします

params:
  home: /var/www/discourse

hooks:
  after_bundle_exec:
    - exec:
        cd: $home
        cmd:
          - bundle config set frozen false
          - "sed -i 's/gem \\\"aws-sdk-s3\\\", require: false/gem \\\"aws-sdk-s3\\\", \\\"1.177.0\\\", require: false/' Gemfile"
          - bundle update aws-sdk-s3
          - bundle add aws-sdk-core --version 3.215

そして、次のように app.yml に追加しました。

# IMPORTANT: SET A SECRET PASSWORD in Postgres for the Discourse User
# TODO: change SOME_SECRET in this template
# 重要:Discourse ユーザーの Postgres に秘密のパスワードを設定してください
# TODO:このテンプレートの SOME_SECRET を変更してください

templates:
  - "templates/web.template.yml"
  - "templates/web.ratelimited.template.yml"
## Uncomment these two lines if you wish to add Lets Encrypt (https)
## Let's Encrypt (https) を追加したい場合は、これらの 2 行をコメント解除してください
  - "templates/web.ssl.template.yml"
  - "templates/web.letsencrypt.ssl.template.yml"
  - "/root/aws-revert-template.yml"

そして、stable にアップグレードを実行したところ、動作しているようです。

テンプレートの内容を直接 app.yml に追加することもできます。

「いいね!」 3