CSS missing when deployed to Heroku?

Everything works perfect when running locally, but no CSS are applied when deployed to Heroku. The CSS urls return 404s.. Any ideas?

Posted over 5 years ago by Erik
Posted over 5 years ago by Erik

(Sorry for not being clear, this is the Etsy Demo)

0
Posted over 5 years ago by Alex Yang

Erik, which chapter of the course are you currently on? This question may be better suited for the troubleshooting section below the video.

To fix the problem, try running 'bundle exec rake assets:precompile' and then recommit your code to Git and Heroku.

0
Posted over 5 years ago by Erik

Sorry, next question I will post over there, but I guess its better keep this one going here.

bundle exec rake assets:precompile didn't fix anything. I added the public/assets (with git add) to both my bitbucket repo and my heroku

0
Posted over 5 years ago by Alex Yang

Hmm...can you help me understand what you're seeing? And what are the CSS URLs that aren't working?

0
Posted over 5 years ago by Erik

Its been uploaded to http://etsydemo-ei.herokuapp.com

0
Posted over 5 years ago by Alex Yang

I see. I would check your CSS/SCSS file under app/assets/stylesheets to make sure that it matches the correct code for the Etsydemo app. You can see the final code for the app here: https://github.com/baserails/etsydemo

0