It seems in version 3.0.4 asset pre-compilation is broken due to a syntax error. When trying to precompile the assets I get this error:
RAILS_ENV=production SKIP_DB_AND_REDIS=1 DONT_PRECOMPILE_CSS=1 bundle exec rake --trace assets:precompile
rake aborted!
SyntaxError: /opt/bitnami/discourse/lib/file_store/base_store.rb:96: syntax error, unexpected ','
download(*, **, print_deprecation: false)
^
/opt/bitnami/discourse/lib/file_store/base_store.rb:102: syntax error, unexpected ','
download(*, **, print_deprecation: false)
In this part of the code when changing the asterisks with normal strings it works correctly:
# TODO: Remove when #download becomes the canonical safe version.
def download_safe(arg1, arg2)
download(arg1, arg2, print_deprecation: false)
rescue StandardError
nil
end