Ive been given a rails 3.2 app and heroku "server" to work on and deploy to.
I have deployed the application to heroku, and it is being served, but the website is all mumbled up and not displaying css/js properly. From experience it seems that the assets have not been precompiled.
Below is what I have tried so far to get this to work.
-
I ran
RAILS_ENV=production rake assets:precompileon my local, committed the changes, and pushed to heroku. Page was still not rendering properly. -
I ran
rake assets:cleanto remove public/assets. Then deployed to heroku, and watched them be precompiled on the deploy. This still resulted in the site not displaying properly. -
Started playing with my
production.rbfileconfig.cache_classes = trueconfig.consider_all_requests_local = falseconfig.action_controller.perform_caching = trueconfig.serve_static_assets = falseconfig.assets.compress = trueconfig.assets.compile = falseconfig.assets.digest = trueconfig.assets.precompile += %w( ie-html5shiv-printshiv.js ie-selectivizr.min.js )
this still has resulted in my site not displaying correctly.
Im at odds end, not sure what else to try. Any other tips or pointers?
Aucun commentaire:
Enregistrer un commentaire