codeforamerica / classifyr

A tool for aggregating and crowd-sourcing the classification emergency call data
MIT License
0 stars 1 forks source link

Styles not loading in production #80

Closed jamesiarmes closed 2 years ago

jamesiarmes commented 2 years ago

After setting RAILS_ENV and RACK_ENV to production, styles no longer load. Running rails assets:precompile does not help.

classifyr-prod

ptrikutam commented 2 years ago

I was just able to run this locally and it worked as expected. @jamesiarmes could you confirm if this failed locally for you or is the issue only in the AWS environment?

jamesiarmes commented 2 years ago

@ptrikutam I've tested this locally on my Mac, locally using Docker, and on AWS. All three produce the result above.

T-Dnzt commented 2 years ago

Hey @jamesiarmes, I was able to reproduce this locally. It seems to be due to one of the default production settings defined in Rails.

This PR should fix the problem:

https://github.com/codeforamerica/classifyr/pull/93

I've also removed the unused application.css file since it wasn't getting compiled properly and was trying to load imports as external files.

Let me know if you run into any issues!