Closed hartsick closed 2 years ago
@hartsick I tried to spin it up locally, and I seem to be getting a different error. I'm not sure if it's related or is a problem specific to GYR. I know there were recent changes to JS asset compilation.
The asset "application.js" is not present in the asset pipeline.
okay sounds good. thanks for checking! I suspect something is off about how we’re expecting the asset pipeline to work in our test application and both the thing you found and the thing I was trying to quickly address are a symptom of that
since the calfresh_logo.png problem is currently preventing local test runs and is breaking our hosted applications, I'd like to merge without addressing the JS problem just because it doesn't seem like we have the bandwidth to consider another approach.
I'm also not sure they're related, or if the problem is specific to GYR since we haven't seen anything else. @bengolder could you open a different issue for the JS problem you're seeing if that proposal sounds okay to you?
trying to clean up my personal PR workspace in Github so going to close this for inactivity! hi everyone!
It's needed for host applications if they mount /cfa/styleguide, since it's used in the styleguide documentation page. This should prevent host applications from getting a 500 error for missing precompiled assets, which is currently happening on GYR and CGLA.
There are likely more robust solutions, but this is the one I've got 🤷.
Closes #250
To test in host project:
Reproduce: In
development.rb
and with gem on current master, add the following configuration:Boot up dev server and visit
/cfa/styleguide
. See error.Test this fix: Update Honeycrisp gem to this branch (In
Gemfile
, setgem 'cfa-styleguide', git: 'https://github.com/codeforamerica/honeycrisp-gem', ref: '6ca7ac9'
,bundle install
). Restart dev serverVisit
/cfa/styleguide
. See no error