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.
on 2014-06-09 10:23
on 2014-06-09 12:16
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@example.com>:
on 2014-06-10 03:15
And after i have change in code how do i submit in heroku. veasna
on 2014-06-10 08:28
Do: git add . git commit -m 'your message' git push heroku master Regards Ps On Jun 10, 2014 2:14 AM, "Duong vong veasna" <firstname.lastname@example.org>
on 2014-06-10 12:02
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 2014-06-10 14:53
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
on 2014-06-10 15:32
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