Are highlight-js assets not uploaded to S3 bucket?

Hi,

I have test/prod instances with minio s3 buckets for asset/upload file storage. It looks that practically all seems to be working fine. But for some reason in both ENVs the /highlight-js/... seems to be missing from minio S3 bucket. Interestingly this is the only asset (as far as I can tell) that is missing. Does it require any command than this: bundle exec rake s3:upload_assets to be uploaded into S3 bucket during build?

It seems that highlighter still lives okay in container. If I modify /lib/highlight_js.rb as mentioned in this article then it works.

Right now added step to container yml file in run: part, with the fix as workaround till this highlighter asset is also part of components that are uploaded to S3 bucket during build

  - replace:
      filename: /var/www/discourse/lib/highlight_js.rb
      from: '"/highlight-js/#{Discourse.current_hostname}/#{version SiteSetting.highlighted_languages}.js"'
      to: '"https://#{Discourse.current_hostname}/highlight-js/#{Discourse.current_hostname}/#{version SiteSetting.highlighted_languages}.js"'

So, this is a bug or missed/not-yer-redone asset that ./launcher rebuild <container_name> does not include this into asset list that are moved to S3 bucket?

1 Like