mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 14:38:17 +08:00
in production there is no cached it seems
This commit is contained in:
parent
ac01885b60
commit
5b96463c40
|
@ -67,7 +67,7 @@ def upload_asset(helper, path, recurse: true, content_type: nil, fullpath: nil,
|
|||
end
|
||||
|
||||
def assets
|
||||
cached = Rails.application.assets.cached
|
||||
cached = Rails.application.assets&.cached
|
||||
manifest = Sprockets::Manifest.new(cached, Rails.root + 'public/assets', Rails.application.config.assets.manifest)
|
||||
|
||||
raise Discourse::SiteSettingMissing.new("s3_upload_bucket") if SiteSetting.s3_upload_bucket.blank?
|
||||
|
|
Loading…
Reference in New Issue
Block a user