projectblacklight / spotlight

Spotlight enables librarians, curators, and others who are responsible for digital collections to create attractive, feature-rich websites that highlight these collections.
Other
161 stars 65 forks source link

spotlight starts with an error on ec2 startup #3014

Open cxu0421 opened 8 months ago

cxu0421 commented 8 months ago

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:

jcoyne commented 8 months ago

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

mephillips-durham commented 8 months ago

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.

taylor-steve commented 4 months ago

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