spotlight icon indicating copy to clipboard operation
spotlight copied to clipboard

spotlight starts with an error on ec2 startup

Open cxu0421 opened this issue 1 year ago • 3 comments

we followed the depolyment on aws ec2 instance running ruby 3.2.2 and Rails 7.1.3.2, the app does not start correctly, we are getting error similar to https://github.com/projectblacklight/blacklight/issues/3031, after following their solution to adjust the manifest.js, we now get the following error on start up,

ActionView::Template::Error (Multiple files with the same output path cannot be linked ("application.js") In "/opt/collections/spotlight/app/assets/config/manifest.js" these files were linked:

  • /opt/collections/spotlight/app/assets/javascripts/application.js
  • /opt/collections/spotlight/app/javascript/application.js ):

cxu0421 avatar Mar 04 '24 23:03 cxu0421

As far as I know, Spotlight does not support Rails 7.1.

jcoyne avatar Mar 05 '24 13:03 jcoyne

Using Rails 7.1 is not the cause of this problem. I opened an issue #2995 not long ago, and we are using 7.0.x

The generated manifest.js is broken. We got past this error by hand-editing the file to remove the line for application.js and add the missing newline. I don't know whether some of the faults we are seeing in our application might be because of this file being incorrrect though. The fact the line for blacklight_gallery was wrong makes me wonder whether it's connected with the lack of results page type choices #2993 in our application.

mephillips-durham avatar Mar 15 '24 17:03 mephillips-durham

A new version of blacklight-gallery was released that fixes the missing newline issue.

taylor-steve avatar Jul 01 '24 17:07 taylor-steve