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

2014-06-09 9:22 GMT+01:00 Duong vong veasna [email protected]:

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
On Jun 10, 2014 2:14 AM, “Duong vong veasna” [email protected]

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.

On Tuesday, June 10, 2014 1:52:26 PM UTC+1, Walter Lee D. wrote:

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

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.

Walter

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs