Forum: Ruby on Rails How to use css on heroku

3ff0d17924f572023431430c52bb94bd?d=identicon&s=25 Duong vong veasna (Guest)
on 2014-06-09 10:23
(Received via mailing list)
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.
8c1f2d18a3497592c45343589e96308b?d=identicon&s=25 Patrício dos Santos (Guest)
on 2014-06-09 12:16
(Received via mailing list)
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 <veasnakhmerit@gmail.com>:
3ff0d17924f572023431430c52bb94bd?d=identicon&s=25 Duong vong veasna (Guest)
on 2014-06-10 03:15
(Received via mailing list)
And after i have change in code how do i submit in heroku.

veasna
8c1f2d18a3497592c45343589e96308b?d=identicon&s=25 Patrício dos Santos (Guest)
on 2014-06-10 08:28
(Received via mailing list)
Do:

git add .
git commit -m 'your message'
git push heroku master

Regards
Ps
On Jun 10, 2014 2:14 AM, "Duong vong veasna" <veasnakhmerit@gmail.com>
3ff0d17924f572023431430c52bb94bd?d=identicon&s=25 Duong vong veasna (Guest)
on 2014-06-10 12:02
(Received via mailing list)
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.
A47e0a6beeb9d048ff054fc1c3a97418?d=identicon&s=25 Walter Davis (walterdavis)
on 2014-06-10 14:53
(Received via mailing list)
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
81b61875e41eaa58887543635d556fca?d=identicon&s=25 Frederick Cheung (Guest)
on 2014-06-10 15:32
(Received via mailing list)
On Tuesday, June 10, 2014 1:52:26 PM UTC+1, Walter Lee Davis 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
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.