How to use css on heroku

Dear all Rails Developers,

I have problem on stylesheet. i use <% stylesheet_link_tag ‘style.css’ %> It work properly in local machine, but when i deployed it to heroku my style doesn’t work. how do i fix this?

thanks.

veasna.

No arquivo config/enviroments/production.rb

altere a linha:

config.assets.compile = false

Para:

config.assets.compile = true

Cumps

And after i have change in code how do i submit in heroku.

veasna

Do:

git add . git commit -m ‘your message’ git push heroku master

Regards Ps

thanks you, sir. it work for me now, but when i add style css and i restart heroku it not run what i have added. please help me. thanks.

veasna.

Have a google for rake assets:precompile. You will need to trigger that on Heroku, and I don't remember how that happens, or if there's a setting you have to engage to make it automatic.

Walter

Have a google for rake assets:precompile. You will need to trigger that on Heroku, and I don’t remember how that happens, or if there’s a setting you have to engage to make it automatic.

And of course style.css would have to be on the list of assets to precompile.

Fred