Impossibile ricostruire a causa dell'aggiornamento della gem AWS SDK e delle nuove protezioni di integrità dei dati AWS

Ma l’ho fatto per un sito che utilizza Backblaze. Ho creato un template che ho inserito in /root/aws-revert-template.yml con questo:

# Questo template ripristina aws-sdk-s3 a una versione che funziona con backblaze

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

E poi l’ho aggiunto al mio app.yml in questo modo:

# IMPORTANTE: IMPOSTA UNA PASSWORD SEGRETA in Postgres per l'utente Discourse
# TODO: cambia SOME_SECRET in questo template

templates:
  - "templates/web.template.yml"
  - "templates/web.ratelimited.template.yml"
## Decommenta queste due righe se desideri aggiungere Lets Encrypt (https)
  - "templates/web.ssl.template.yml"
  - "templates/web.letsencrypt.ssl.template.yml"
  - "/root/aws-revert-template.yml"

E ho eseguito un aggiornamento a stable e sembra funzionare.

Potresti anche aggiungere semplicemente ciò che è nel template al tuo app.yml

3 Mi Piace