하지만 저는 Backblaze를 사용하는 사이트에서 이 방법을 사용했습니다. /root/aws-revert-template.yml에 다음과 같은 템플릿을 생성했습니다:
# This template reverts aws-sdk-s3 to a version that works with 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
그리고 app.yml에 다음과 같이 추가했습니다:
# IMPORTANT: SET A SECRET PASSWORD in Postgres for the Discourse User
# TODO: change SOME_SECRET in this template
templates:
- "templates/web.template.yml"
- "templates/web.ratelimited.template.yml"
## Uncomment these two lines if you wish to add Lets Encrypt (https)
- "templates/web.ssl.template.yml"
- "templates/web.letsencrypt.ssl.template.yml"
- "/root/aws-revert-template.yml"
그 후 stable 버전으로 업그레이드를 수행했고, 잘 작동하는 것 같습니다.
또는 템플릿에 있는 내용을 app.yml에 직접 추가하는 것도 가능합니다.