Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add calfresh_logo.png to precompiled assets #258

Closed
wants to merge 1 commit into from

Conversation

hartsick
Copy link
Contributor

@hartsick hartsick commented Mar 2, 2021

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:

  1. Reproduce:
    In development.rb and with gem on current master, add the following configuration:
  config.assets.check_precompiled_asset = true

Boot up dev server and visit /cfa/styleguide. See error.

  1. Test this fix:
    Update Honeycrisp gem to this branch (In Gemfile, set gem 'cfa-styleguide', git: 'https://github.com/codeforamerica/honeycrisp-gem', ref: '6ca7ac9', bundle install). Restart dev server

Visit /cfa/styleguide. See no error

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.
@hartsick hartsick temporarily deployed to honeycrisp-fix-document-kvsm1k March 2, 2021 23:31 Inactive
@bengolder
Copy link
Contributor

@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.

@hartsick
Copy link
Contributor Author

hartsick commented Mar 3, 2021

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

@hartsick hartsick changed the base branch from master to main March 13, 2021 00:45
@hartsick
Copy link
Contributor Author

hartsick commented Mar 19, 2021

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?

@hartsick
Copy link
Contributor Author

trying to clean up my personal PR workspace in Github so going to close this for inactivity! hi everyone!

@hartsick hartsick closed this Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hosted documentation page broken due to non-precompiled assets
2 participants